changeset 5247:3e401281ff93 libavformat

Remove pointless setting of pkt->size, av_get_packet already handles this.
author reimar
date Thu, 01 Oct 2009 17:22:01 +0000
parents dc7045701f0e
children 938a1b27357a
files raw.c
diffstat 1 files changed, 0 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/raw.c	Thu Oct 01 17:08:33 2009 +0000
+++ b/raw.c	Thu Oct 01 17:22:01 2009 +0000
@@ -123,9 +123,6 @@
     if (ret <= 0) {
         return AVERROR(EIO);
     }
-    /* note: we need to modify the packet size here to handle the last
-       packet */
-    pkt->size = ret;
 
     bps= av_get_bits_per_sample(s->streams[0]->codec->codec_id);
     assert(bps); // if false there IS a bug elsewhere (NOT in this function)