[FFmpeg-cvslog] r20128 - trunk/libavformat/raw.c

reimar subversion
Thu Oct 1 19:22:02 CEST 2009


Author: reimar
Date: Thu Oct  1 19:22:01 2009
New Revision: 20128

Log:
Remove pointless setting of pkt->size, av_get_packet already handles this.

Modified:
   trunk/libavformat/raw.c

Modified: trunk/libavformat/raw.c
==============================================================================
--- trunk/libavformat/raw.c	Thu Oct  1 19:08:33 2009	(r20127)
+++ trunk/libavformat/raw.c	Thu Oct  1 19:22:01 2009	(r20128)
@@ -123,9 +123,6 @@ static int raw_read_packet(AVFormatConte
     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)



More information about the ffmpeg-cvslog mailing list