jvdec: check that the video_size fits in the packet.
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 3 Jul 2012 10:32:26 +0000 (12:32 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 3 Jul 2012 10:38:03 +0000 (12:38 +0200)
commit114f82ee7e384ff80151fe6f4ed89d46c2f20419
tree1f7650b626fb24f4aa1084b0ed14af209843bb5e
parent596814f9781772050c65bdd8add27445bc8374a4
jvdec: check that the video_size fits in the packet.

Prevents use of out of array data and fate failure.

Found-by: durandal_1707
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/jvdec.c
tests/ref/fate/jv