[FFmpeg-cvslog] avformat/mux: remove unnecessary autobsf hack

James Almer git at videolan.org
Sun Nov 6 03:45:24 EET 2016


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Fri Sep 23 02:02:43 2016 -0300| [75a13115cd6b961f4f6779423353c1cf25db4c0e] | committer: James Almer

avformat/mux: remove unnecessary autobsf hack

autobsf has been ported to the new bsf API.

Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=75a13115cd6b961f4f6779423353c1cf25db4c0e
---

 libavformat/mux.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/libavformat/mux.c b/libavformat/mux.c
index 0d285f4..77823a4 100644
--- a/libavformat/mux.c
+++ b/libavformat/mux.c
@@ -309,12 +309,6 @@ FF_DISABLE_DEPRECATION_WARNINGS
 FF_ENABLE_DEPRECATION_WARNINGS
 #endif
 
-        /* update internal context from codecpar, old bsf api needs this
-         * FIXME: remove when autobsf uses new bsf API */
-        ret = avcodec_parameters_to_context(st->internal->avctx, st->codecpar);
-        if (ret < 0)
-            goto fail;
-
         if (!st->time_base.num) {
             /* fall back on the default timebase values */
             if (par->codec_type == AVMEDIA_TYPE_AUDIO && par->sample_rate)



More information about the ffmpeg-cvslog mailing list