Message ID | 20210520212549.15466-1-michael@niedermayer.cc |
---|---|
State | New |
Headers | show |
Series | [FFmpeg-devel,1/3] avformat/moflex: Initialize format | expand |
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 |
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);
Fixes: CID1477423 Uninitialized scalar variable Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> --- libavformat/moflex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)