diff options
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); } |