OSDN Git Service

Fix use of uninitialized variable in mpeg PS detection.
authorjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sun, 7 Nov 2010 16:33:29 +0000 (16:33 +0000)
committerjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sun, 7 Nov 2010 16:33:29 +0000 (16:33 +0000)
This could easily cause PS detection to fail.

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

libhb/stream.c

index d53bf45..204baa7 100644 (file)
@@ -390,7 +390,7 @@ static int hb_stream_check_for_ps(hb_stream_t *stream)
 {
     uint8_t buf[2048*4];
     uint8_t sc_buf[4];
-    int pos;
+    int pos = 0;
     int hits = 0;
 
     fseek(stream->file_handle, 0, SEEK_SET);