~icecast/icecast/trunk

« back to all changes in this revision

Viewing changes to src/format_ebml.c

  • Committer: ph3-der-loewe
  • Date: 2014-11-29 12:41:19 UTC
  • Revision ID: svn-v4:0101bb08-14d6-0310-b084-bc0e0c8e3800:icecast/trunk/icecast:19368
cleanup: converted printf() into ICECAST_LOG_DEBUG() but commented out so they do not spam logs for normal users.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 *
8
8
 * Copyright 2012,      David Richards, Mozilla Foundation,
9
9
 *                      and others (see AUTHORS for details).
 
10
 * Copyright 2014,      Philipp "ph3-der-loewe" Schafft <lion@lion.leolix.org>.
10
11
 */
11
12
 
12
13
/* format_ebml.c
35
36
 
36
37
#include "logging.h"
37
38
 
38
 
#define EBML_DEBUG 0
39
39
#define EBML_HEADER_MAX_SIZE 131072
40
40
#define EBML_SLICE_SIZE 4096
41
41
 
423
423
            ICECAST_LOG_ERROR("EBML Header too large, failing");
424
424
            return -1;
425
425
        }
426
 
        
427
 
        if (EBML_DEBUG)
428
 
        {
429
 
            printf("EBML: Adding to header, ofset is %d size is %d adding %d\n", 
430
 
                   ebml->header_size, ebml->header_position, len);
431
 
        }
 
426
 
 
427
/* 
 
428
        ICECAST_LOG_DEBUG("EBML: Adding to header, ofset is %d size is %d adding %d", 
 
429
                          ebml->header_size, ebml->header_position, len);
 
430
*/
432
431
        
433
432
        memcpy(ebml->header + ebml->header_position, ebml->input_buffer, len);
434
433
        ebml->header_position += len;
442
441
    {
443
442
        if (!memcmp(ebml->input_buffer + b, ebml->cluster_id, 4))
444
443
        {
445
 
            if (EBML_DEBUG)
446
 
            {
447
 
                printf("EBML: found cluster\n");
448
 
            }
 
444
/*
 
445
            ICECAST_LOG_DEBUG("EBML: found cluster");
 
446
*/
449
447
        
450
448
            if (ebml->header_size == 0)
451
449
            {