mirror of https://git.ffmpeg.org/ffmpeg.git
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:
parent
2d02cf72e1
commit
20b09b20a9
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue