[FFmpeg-devel] [PATCH] add av_shrink_packet

Reimar Döffinger Reimar.Doeffinger
Wed Apr 8 00:17:32 CEST 2009

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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: shrinkpacket.diff
Type: text/x-diff
Size: 1971 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090408/6b098521/attachment.diff>

More information about the ffmpeg-devel mailing list