mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
Use reported_size to truncate final Bink Audio frame
Originally committed as revision 21993 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
589760c68b
commit
c8c77d8d97
@ -272,11 +272,7 @@ static int decode_frame(AVCodecContext *avctx,
|
|||||||
get_bits_align32(gb);
|
get_bits_align32(gb);
|
||||||
}
|
}
|
||||||
|
|
||||||
*data_size = (uint8_t*)samples - (uint8_t*)data;
|
*data_size = FFMIN(reported_size, (uint8_t*)samples - (uint8_t*)data);
|
||||||
if (reported_size != *data_size) {
|
|
||||||
av_log(avctx, AV_LOG_WARNING, "reported data size (%d) does not match output data size (%d)\n",
|
|
||||||
reported_size, *data_size);
|
|
||||||
}
|
|
||||||
return buf_size;
|
return buf_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user