From e1128c8b28a467c131eba6ce8f48f150f8ef5fd7 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 19 Oct 2015 15:00:21 +0200 Subject: video: pass through libavformat has_b_frames field This fixes initial decoding of some samples. See #1341. According to Libav devs, this should be considered a libavcodec bug, but as it's hard to fix, here we go. --- common/av_common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/common/av_common.c b/common/av_common.c index 87616b9879..c1b188474a 100644 --- a/common/av_common.c +++ b/common/av_common.c @@ -65,6 +65,7 @@ void mp_copy_lav_codec_headers(AVCodecContext *avctx, AVCodecContext *st) avctx->block_align = st->block_align; avctx->channel_layout = st->channel_layout; avctx->bits_per_coded_sample = st->bits_per_coded_sample; + avctx->has_b_frames = st->has_b_frames; } // We merely pass-through our PTS/DTS as an int64_t; libavcodec won't use it. -- cgit v1.2.3