summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavformat/4xm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/4xm.c b/libavformat/4xm.c
index 6e63c67399..23279c42fb 100644
--- a/libavformat/4xm.c
+++ b/libavformat/4xm.c
@@ -319,8 +319,10 @@ static int fourxm_read_packet(AVFormatContext *s,
if (ret < 0) {
av_free_packet(pkt);
- } else
+ } else {
packet_read = 1;
+ av_shrink_packet(pkt, ret + 8);
+ }
break;
case snd__TAG: