vlc | branch: master | Francois Cartegnie <[email protected]> | Wed Jul 25 22:10:36 2018 +0200| [c50cc26697eb92af03d73bd8e1a52c47bc6c3802] | committer: Francois Cartegnie
codec: avcodec: set low delay on low fps fixes non frame output with low fps videos refs #20740 > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c50cc26697eb92af03d73bd8e1a52c47bc6c3802 --- modules/codec/avcodec/video.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c index ba51a42961..7a29ffdfb5 100644 --- a/modules/codec/avcodec/video.c +++ b/modules/codec/avcodec/video.c @@ -462,6 +462,13 @@ static int OpenVideoCodec( decoder_t *p_dec ) cc_Init( &p_sys->cc ); set_video_color_settings( &p_dec->fmt_in.video, ctx ); + if( p_dec->fmt_in.video.i_frame_rate_base && + p_dec->fmt_in.video.i_frame_rate && + (double) p_dec->fmt_in.video.i_frame_rate / + p_dec->fmt_in.video.i_frame_rate_base < 6 ) + { + ctx->flags |= AV_CODEC_FLAG_LOW_DELAY; + } post_mt( p_sys ); ret = ffmpeg_OpenCodec( p_dec, ctx, codec ); _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
