mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-24 03:39:45 +00:00
Fix regression introduced by r12929.
num_coeffs is just one byte. It would make no sense for num_coeffs to be as high as 2^32. Originally committed as revision 12931 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
9ed0cff98e
commit
a960000304
@ -293,7 +293,8 @@ static int mimic_decode_frame(AVCodecContext *avctx, void *data,
|
|||||||
height = bytestream_get_le16(&buf);
|
height = bytestream_get_le16(&buf);
|
||||||
buf += 4; /* some constant */
|
buf += 4; /* some constant */
|
||||||
is_pframe = bytestream_get_le32(&buf);
|
is_pframe = bytestream_get_le32(&buf);
|
||||||
num_coeffs = bytestream_get_le32(&buf);
|
num_coeffs = bytestream_get_byte(&buf);
|
||||||
|
buf += 3; /* some constant */
|
||||||
|
|
||||||
if(!ctx->avctx) {
|
if(!ctx->avctx) {
|
||||||
int i;
|
int i;
|
||||||
|
Loading…
Reference in New Issue
Block a user