[FFmpeg-devel] [PATCH] add av_shrink_packet

Michael Niedermayer michaelni
Wed Apr 8 01:38:56 CEST 2009


On Wed, Apr 08, 2009 at 12:17:32AM +0200, Reimar D?ffinger wrote:
> Hello,
> 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

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I have never wished to cater to the crowd; for what I know they do not
approve, and what they approve I do not know. -- Epicurus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090408/f2cf280b/attachment.pgp>



More information about the ffmpeg-devel mailing list