diff options
author | James Almer <jamrial@gmail.com> | 2020-12-18 14:31:47 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2020-12-18 15:22:16 -0300 |
commit | 20b09b20a942d4aad38f9fa1324b713168d3db9a (patch) | |
tree | 734ef489c3973e2eef4f1a866813346e50bc4b69 /libavcodec/dpx.c | |
parent | 2d02cf72e1017cc617aca64ab5815ea1cb63f403 (diff) | |
download | ffmpeg-20b09b20a942d4aad38f9fa1324b713168d3db9a.tar.gz |
avcodec/dpx: fix use of uninitialised value
Found by Valgrind.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/dpx.c')
-rw-r--r-- | libavcodec/dpx.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/dpx.c b/libavcodec/dpx.c index bd431ccbcb..12bc165415 100644 --- a/libavcodec/dpx.c +++ b/libavcodec/dpx.c @@ -333,10 +333,12 @@ static int decode_frame(AVCodecContext *avctx, break; case 50: // RGB elements = 3; + yuv = 0; break; case 52: // ABGR case 51: // RGBA elements = 4; + yuv = 0; break; case 100: // UYVY422 elements = 2; |