Commit 2e77c145 authored by Christophe Mutricy's avatar Christophe Mutricy

Use LOW_DELAY only with MPEG1/2. Backport of [18026]. Refs #864

parent c65571b1
...@@ -417,7 +417,9 @@ int E_(OpenEncoder)( vlc_object_t *p_this ) ...@@ -417,7 +417,9 @@ int E_(OpenEncoder)( vlc_object_t *p_this )
p_context->max_b_frames = p_context->max_b_frames =
__MAX( __MIN( p_sys->i_b_frames, FF_MAX_B_FRAMES ), 0 ); __MAX( __MIN( p_sys->i_b_frames, FF_MAX_B_FRAMES ), 0 );
p_context->b_frame_strategy = 0; p_context->b_frame_strategy = 0;
if( !p_context->max_b_frames ) if( !p_context->max_b_frames &&
( p_enc->fmt_out.i_codec == VLC_FOURCC('m', 'p', '2', 'v') ||
p_enc->fmt_out.i_codec == VLC_FOURCC('m', 'p', '1', 'v') ) )
p_context->flags |= CODEC_FLAG_LOW_DELAY; p_context->flags |= CODEC_FLAG_LOW_DELAY;
#if LIBAVCODEC_BUILD >= 4687 #if LIBAVCODEC_BUILD >= 4687
......
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