changeset 20465:367513ea7b12

removed unreachable code (when len=pes_parse2() returns 0)
author nicodvb
date Sat, 28 Oct 2006 09:44:18 +0000
parents 7b8269775ec0
children a5d299e877b2
files libmpdemux/demux_ts.c
diffstat 1 files changed, 2 insertions(+), 25 deletions(-) [+]
line wrap: on
line diff
--- 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