Revision 6fb316d5 libavformat/mpegts.c

View differences:

libavformat/mpegts.c
378 378
    
379 379
#ifdef DEBUG_SI
380 380
    printf("PMT:\n");
381
    av_hex_dump((uint8_t *)section, section_len);
381
    av_hex_dump(stdout, (uint8_t *)section, section_len);
382 382
#endif
383 383
    p_end = section + section_len - 4;
384 384
    p = section;
......
453 453

  
454 454
#ifdef DEBUG_SI
455 455
    printf("PAT:\n");
456
    av_hex_dump((uint8_t *)section, section_len);
456
    av_hex_dump(stdout, (uint8_t *)section, section_len);
457 457
#endif
458 458
    p_end = section + section_len - 4;
459 459
    p = section;
......
502 502

  
503 503
#ifdef DEBUG_SI
504 504
    printf("PAT:\n");
505
    av_hex_dump((uint8_t *)section, section_len);
505
    av_hex_dump(stdout, (uint8_t *)section, section_len);
506 506
#endif
507 507
    p_end = section + section_len - 4;
508 508
    p = section;
......
563 563

  
564 564
#ifdef DEBUG_SI
565 565
    printf("SDT:\n");
566
    av_hex_dump((uint8_t *)section, section_len);
566
    av_hex_dump(stdout, (uint8_t *)section, section_len);
567 567
#endif
568 568

  
569 569
    p_end = section + section_len - 4;
......
1126 1126
                handle_packets(ts, MAX_SCAN_PACKETS);
1127 1127
            }
1128 1128
            
1129
            if (ts->nb_services <= 0)
1130
                return -1;
1129
            if (ts->nb_services <= 0) {
1130
		/* raw transport stream */
1131
		ts->auto_guess = 1;
1132
		s->ctx_flags |= AVFMTCTX_NOHEADER;
1133
		goto do_pcr;
1134
	    }
1131 1135
            
1132 1136
            /* tune to first service found */
1133 1137
            service = ts->services[0];
......
1165 1169
        s->pts_num = 1;
1166 1170
        s->pts_den = 27000000;
1167 1171
        
1172
    do_pcr:
1168 1173
        st = av_new_stream(s, 0);
1169 1174
        if (!st)
1170 1175
            goto fail;

Also available in: Unified diff