summaryrefslogtreecommitdiff
path: root/libavcodec/dpx.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2020-12-18 14:31:47 -0300
committerJames Almer <jamrial@gmail.com>2020-12-18 15:22:16 -0300
commit20b09b20a942d4aad38f9fa1324b713168d3db9a (patch)
tree734ef489c3973e2eef4f1a866813346e50bc4b69 /libavcodec/dpx.c
parent2d02cf72e1017cc617aca64ab5815ea1cb63f403 (diff)
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.c2
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;