diff options
author | Martin Storsjö <martin@martin.st> | 2015-02-24 14:07:54 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2015-02-24 23:07:47 +0200 |
commit | 8e32b1f0963d01d4f5d4803eb721f162e0d58d9a (patch) | |
tree | 94a91168329abd36f717b6fc7ea7b2ef60cdea2d /libavformat/movenchint.c | |
parent | 199fb40278146c5bb162990c66ad3cd561abc780 (diff) | |
download | ffmpeg-8e32b1f0963d01d4f5d4803eb721f162e0d58d9a.tar.gz |
libavformat: Use ffio_free_dyn_buf where applicable
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/movenchint.c')
-rw-r--r-- | libavformat/movenchint.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavformat/movenchint.c b/libavformat/movenchint.c index a8f5f34f9c..73498e4547 100644 --- a/libavformat/movenchint.c +++ b/libavformat/movenchint.c @@ -458,7 +458,6 @@ done: void ff_mov_close_hinting(MOVTrack *track) { AVFormatContext *rtp_ctx = track->rtp_ctx; - uint8_t *ptr; av_freep(&track->enc); sample_queue_free(&track->sample_queue); @@ -466,8 +465,7 @@ void ff_mov_close_hinting(MOVTrack *track) return; if (rtp_ctx->pb) { av_write_trailer(rtp_ctx); - avio_close_dyn_buf(rtp_ctx->pb, &ptr); - av_free(ptr); + ffio_free_dyn_buf(&rtp_ctx->pb); } avformat_free_context(rtp_ctx); } |