diff --git a/libavformat/wav.c b/libavformat/wav.c
index f9163b46ee8f5b1f476d4366ad5b104bf519f303..081eb78698d0a410ee29aa54e3644f1fb7f0c396 100644
--- a/libavformat/wav.c
+++ b/libavformat/wav.c
@@ -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;
 }