aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-12-10 14:02:18 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-12-10 14:46:39 +0100
commit52a17972defa118705a4020a6d0bb3ad277df819 (patch)
tree86139492cd8b2374556c06ba2ce5f1df36015058 /libavformat
parent0fadbd3623cf9132832f48810c0edb93aa63f51b (diff)
downloadffmpeg-52a17972defa118705a4020a6d0bb3ad277df819.tar.gz
avformat/yuv4mpegdec: fix "warning: field_order may be used uninitialized in this function"
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/yuv4mpegdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/yuv4mpegdec.c b/libavformat/yuv4mpegdec.c
index c02b2911bc..6d94a5908a 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);