changeset 4838:78eb7d728be4 libavformat

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.
author reimar
date Wed, 08 Apr 2009 20:19:12 +0000
parents 4b74f09970d0
children bab1f7903289
files utils.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/utils.c	Wed Apr 08 16:01:10 2009 +0000
+++ b/utils.c	Wed Apr 08 20:19:12 2009 +0000
@@ -272,7 +272,7 @@
     if(ret<=0)
         av_free_packet(pkt);
     else
-        pkt->size= ret;
+        av_shrink_packet(pkt, ret);
 
     return ret;
 }