Commit 75a13115 authored by James Almer's avatar James Almer

avformat/mux: remove unnecessary autobsf hack

autobsf has been ported to the new bsf API.
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent e8a39f58
...@@ -309,12 +309,6 @@ FF_DISABLE_DEPRECATION_WARNINGS ...@@ -309,12 +309,6 @@ FF_DISABLE_DEPRECATION_WARNINGS
FF_ENABLE_DEPRECATION_WARNINGS FF_ENABLE_DEPRECATION_WARNINGS
#endif #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) { if (!st->time_base.num) {
/* fall back on the default timebase values */ /* fall back on the default timebase values */
if (par->codec_type == AVMEDIA_TYPE_AUDIO && par->sample_rate) if (par->codec_type == AVMEDIA_TYPE_AUDIO && par->sample_rate)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment