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>
This commit is contained in:
James Almer 2020-12-18 14:31:47 -03:00
parent 2d02cf72e1
commit 20b09b20a9
1 changed files with 2 additions and 0 deletions

View File

@ -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;