OSDN Git Service

avcodec/mlpdec: check that streamtype matches the codec
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 16 Dec 2013 14:03:39 +0000 (15:03 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 16 Dec 2013 14:04:49 +0000 (15:04 +0100)
commita8d702859b8bd17978fb5d8cb1d6acc363031e80
tree2b6dd52083155bef82456ad6132cafb66e63707b
parente2742d6ad69595fd2af36adf0883e37701307f52
avcodec/mlpdec: check that streamtype matches the codec

Fixes use of uninitialized memory
Fixes msan_uninit-mem_7f126c8ed1ac_5945_issue1731_nonpublic.mpg
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/mlpdec.c