Remove useless setting of pkt->size, av_get_packet already handles that.
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Fri, 2 Oct 2009 07:03:04 +0000 (07:03 +0000)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Fri, 2 Oct 2009 07:03:04 +0000 (07:03 +0000)
Originally committed as revision 20139 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/wav.c

index f9163b4..081eb78 100644 (file)
@@ -274,9 +274,6 @@ static int wav_read_packet(AVFormatContext *s,
         return AVERROR(EIO);
     pkt->stream_index = 0;
 
-    /* note: we need to modify the packet size here to handle the last
-       packet */
-    pkt->size = ret;
     return ret;
 }