diff utils.c @ 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 adb4c38575d1
children 8b4d5223daa5
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;
 }