]> git.sesse.net Git - ffmpeg/commitdiff
avformat/mux: remove unnecessary autobsf hack
authorJames Almer <jamrial@gmail.com>
Fri, 23 Sep 2016 05:02:43 +0000 (02:02 -0300)
committerJames Almer <jamrial@gmail.com>
Sun, 6 Nov 2016 01:42:23 +0000 (22:42 -0300)
autobsf has been ported to the new bsf API.

Signed-off-by: James Almer <jamrial@gmail.com>
libavformat/mux.c

index 0d285f4a59558b20ed9ce6eb2756a0111be0b1a0..77823a4e75d83a2d5d96114edca9aa28654b106a 100644 (file)
@@ -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)