[FFmpeg-cvslog] avformat/yuv4mpegdec: fix "warning: field_order may be used uninitialized in this function"

Michael Niedermayer git at videolan.org
Wed Dec 10 15:00:05 CET 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Dec 10 14:02:18 2014 +0100| [52a17972defa118705a4020a6d0bb3ad277df819] | committer: Michael Niedermayer

avformat/yuv4mpegdec: fix "warning: field_order may be used uninitialized in this function"

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=52a17972defa118705a4020a6d0bb3ad277df819
---

 libavformat/yuv4mpegdec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/yuv4mpegdec.c b/libavformat/yuv4mpegdec.c
index c02b291..6d94a59 100644
--- a/libavformat/yuv4mpegdec.c
+++ b/libavformat/yuv4mpegdec.c
@@ -39,7 +39,7 @@ static int yuv4_read_header(AVFormatContext *s)
     enum AVPixelFormat pix_fmt = AV_PIX_FMT_NONE, alt_pix_fmt = AV_PIX_FMT_NONE;
     enum AVChromaLocation chroma_sample_location = AVCHROMA_LOC_UNSPECIFIED;
     AVStream *st;
-    enum AVFieldOrder field_order;
+    enum AVFieldOrder field_order = AV_FIELD_UNKNOWN;
 
     for (i = 0; i < MAX_YUV4_HEADER; i++) {
         header[i] = avio_r8(pb);



More information about the ffmpeg-cvslog mailing list