OSDN Git Service

don't read the entire file looking for audio in transport streams
authorjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Wed, 25 Nov 2009 02:21:03 +0000 (02:21 +0000)
committerjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Wed, 25 Nov 2009 02:21:03 +0000 (02:21 +0000)
if the PMT indicates there is no audio we do not need to continue
searching.

git-svn-id: svn://localhost/HandBrake/trunk@2972 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/stream.c

index 538353e..ff593b2 100644 (file)
@@ -2049,7 +2049,7 @@ static void hb_ts_stream_find_pids(hb_stream_t *stream)
                        }
                }
                // Keep going  until we have a complete set of PIDs
-               if ((stream->ts_number_video_pids > 0) && (stream->ts_number_audio_pids > 0))
+               if (stream->ts_number_video_pids > 0)
                  break;
        }