aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/movenc.c
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2015-10-27 14:35:30 +0100
committerHendrik Leppkes <h.leppkes@gmail.com>2015-10-27 14:35:30 +0100
commitc2f861ca42fa1a2fb6f7e85abb7bd44f39c6f2c4 (patch)
treefd5a76e51fa3eb2b90deafbb6c0c48a127be42a9 /libavformat/movenc.c
parent7f5af80ba42bbd82da53dfd95236e9d47159a96a (diff)
downloadffmpeg-c2f861ca42fa1a2fb6f7e85abb7bd44f39c6f2c4.tar.gz
Replace remaining occurances of av_free_packet with av_packet_unref
Diffstat (limited to 'libavformat/movenc.c')
-rw-r--r--libavformat/movenc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 61dcf4c875..3646994c43 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -440,10 +440,10 @@ concatenate:
return ret;
if (info->num_blocks != 6)
return 0;
- av_free_packet(pkt);
+ av_packet_unref(pkt);
if ((ret = av_copy_packet(pkt, &info->pkt)) < 0)
return ret;
- av_free_packet(&info->pkt);
+ av_packet_unref(&info->pkt);
info->num_blocks = 0;
}
@@ -498,7 +498,7 @@ static int mov_write_eac3_tag(AVIOContext *pb, MOVTrack *track)
av_free(buf);
end:
- av_free_packet(&info->pkt);
+ av_packet_unref(&info->pkt);
av_freep(&track->eac3_priv);
return size;
@@ -4606,7 +4606,7 @@ static int mov_write_subtitle_end_packet(AVFormatContext *s,
end.stream_index = stream_index;
ret = mov_write_single_packet(s, &end);
- av_free_packet(&end);
+ av_packet_unref(&end);
return ret;
}