[FFmpeg-cvslog] apedec: fix handling of packet sizes that are not a multiple of 4 bytes
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Sat Feb 4 12:07:52 CET 2012
On 4 Feb 2012, at 12:02, Reimar Döffinger <Reimar.Doeffinger at gmx.de> wrote:
> On 4 Feb 2012, at 03:31, git at videolan.org (Justin Ruggles) wrote:
>> + buf_size = avpkt->size & ~3;
>> + if (buf_size != avpkt->size) {
>> + av_log(avctx, AV_LOG_WARNING, "packet size is not a multiple of 4. "
>> + "extra bytes at the end will be skipped.\n");
>> + }
>>
>> - tmp_data = av_realloc(s->data, FFALIGN(buf_size, 4));
>
> Why does the code no longer use FFALIGN?
Sorry, forget it. I missed that the point of the new code is to round buf_size down, and the old one rounded up.
More information about the ffmpeg-cvslog
mailing list