# HG changeset patch # User nicodvb # Date 1162028658 0 # Node ID 367513ea7b12a8f27b2324a7ac2ba2b119043a98 # Parent 7b8269775ec014b296fc0e6ffc25c5dc747fcb42 removed unreachable code (when len=pes_parse2() returns 0) diff -r 7b8269775ec0 -r 367513ea7b12 libmpdemux/demux_ts.c --- a/libmpdemux/demux_ts.c Sat Oct 28 09:03:51 2006 +0000 +++ b/libmpdemux/demux_ts.c Sat Oct 28 09:44:18 2006 +0000 @@ -2881,22 +2881,12 @@ if(probe) { + uint8_t *lang = NULL; + if(es->type == UNKNOWN) return 0; tss->payload_size = es->payload_size; - if(len == 0) - { - if(tss->type != UNKNOWN) - { - es->size = buf_size; - es->start = p; - return 1; - } - } - else - { - uint8_t *lang = NULL; tss->type = es->type; tss->subtype = es->subtype; @@ -2910,22 +2900,9 @@ else es->lang[0] = 0; return 1; - } } else { - if(len == 0) - { - if(tss->type != UNKNOWN) - { - len = es->size = buf_size; //push the whole packet to the fifo - //(we already learned what it is during the probe phase) - es->start = p; - } - else - continue; - } - if(es->pts == 0.0f) es->pts = tss->pts = tss->last_pts; else