diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-04-08 20:19:12 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-04-08 20:19:12 +0000 |
commit | feb993e5794b3dacb51085a9b77013495eb6dd1c (patch) | |
tree | 417d93a8a94c57b00b3552393d9355a320c32501 /libavformat/utils.c | |
parent | c81604f862a550bef5261680cfdc48deb6fce046 (diff) | |
download | ffmpeg-feb993e5794b3dacb51085a9b77013495eb6dd1c.tar.gz |
Add av_shrink_packet function for use in av_get_packet that reduces pkt->size
and ensures the following padding is correctly initialized to 0.
Originally committed as revision 18378 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 54c92028a9..d3b9c090eb 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -272,7 +272,7 @@ int av_get_packet(ByteIOContext *s, AVPacket *pkt, int size) if(ret<=0) av_free_packet(pkt); else - pkt->size= ret; + av_shrink_packet(pkt, ret); return ret; } |