diff mbox series

[FFmpeg-devel,1/3] avformat/moflex: Initialize format

Message ID 20210520212549.15466-1-michael@niedermayer.cc
State New
Headers show
Series [FFmpeg-devel,1/3] avformat/moflex: Initialize format | expand

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Michael Niedermayer May 20, 2021, 9:25 p.m. UTC
Fixes: CID1477423 Uninitialized scalar variable

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
---
 libavformat/moflex.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libavformat/moflex.c b/libavformat/moflex.c
index 0adb5f4864..dd4e7e0726 100644
--- a/libavformat/moflex.c
+++ b/libavformat/moflex.c
@@ -172,7 +172,7 @@  static int moflex_read_sync(AVFormatContext *s)
         unsigned type, ssize, codec_id = 0;
         unsigned codec_type, width = 0, height = 0, sample_rate = 0, channels = 0;
         int stream_index = -1;
-        int format;
+        int format = AV_PIX_FMT_NONE;
         AVRational fps;
 
         read_var_byte(s, &type);