]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/rtpenc_chain.c
avformat/flvenc: check that the codec_tag fits in the available bits
[ffmpeg] / libavformat / rtpenc_chain.c
index 302c14c11acccd1d65897ee9d90af7692cb1066a..74f306eb96b5f66b47fe27f2237a15b4910ffd8d 100644 (file)
@@ -91,9 +91,7 @@ int ff_rtp_chain_mux_open(AVFormatContext **out, AVFormatContext *s,
         if (handle && rtpctx->pb) {
             avio_closep(&rtpctx->pb);
         } else if (rtpctx->pb) {
-            uint8_t *ptr;
-            avio_close_dyn_buf(rtpctx->pb, &ptr);
-            av_free(ptr);
+            ffio_free_dyn_buf(&rtpctx->pb);
         }
         avformat_free_context(rtpctx);
         return ret;