[FFmpeg-devel] [PATCH] add av_shrink_packet
Wed Apr 8 02:20:01 CEST 2009
On 4/7/2009 4:38 PM, Michael Niedermayer wrote:
> On Wed, Apr 08, 2009 at 12:17:32AM +0200, Reimar D?ffinger wrote:
>> currently av_get_packet upon a partial read simply resizes the packet
>> by setting pkt->size. Unfortunately like that the padding will not be
>> set to 0 as required, it can actually be uninitialized.
>> Attached is a possible solution to this.
> not pretty but ok as i ve no better idea either
Print and return error in this case ?
Feeding partial packets might be a good way to test decoder resistance,
but overall it only produces bug reports and bugs in my experience.
Baptiste COUDURIER GnuPG Key Id: 0x5C1ABAAA
Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
checking for life_signs in -lkenny... no
FFmpeg maintainer http://www.ffmpeg.org
More information about the ffmpeg-devel