Browse code

Mark dvdaudio_substream_type variable as av_uninit to work around false positive uninitialized variable warning.

Originally committed as revision 17825 to svn://svn.ffmpeg.org/ffmpeg/trunk

Diego Biurrun authored on 2009/03/06 04:13:12
Showing 1 changed files
... ...
@@ -413,7 +413,7 @@ static int mpegps_read_packet(AVFormatContext *s,
413 413
     enum CodecID codec_id = CODEC_ID_NONE;
414 414
     enum CodecType type;
415 415
     int64_t pts, dts, dummy_pos; //dummy_pos is needed for the index building to work
416
-    uint8_t dvdaudio_substream_type;
416
+    uint8_t av_uninit(dvdaudio_substream_type);
417 417
 
418 418
  redo:
419 419
     len = mpegps_read_pes_header(s, &dummy_pos, &startcode, &pts, &dts);