Commit d701b7bc authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* ffmpeg/encoder.c: if p_codec->pix_ftms is not yet available in this version...

* ffmpeg/encoder.c: if p_codec->pix_ftms is not yet available in this version of ffmpeg, then we just pray...?
 At least now it compiles again. Gildas, could you check if this is correct please?
parent e727aa7f
......@@ -362,6 +362,7 @@ int E_(OpenEncoder)( vlc_object_t *p_this )
p_enc->fmt_in.i_codec = VLC_FOURCC('I','4','2','0');
p_context->pix_fmt = E_(GetFfmpegChroma)( p_enc->fmt_in.i_codec );
#if LIBAVCODEC_BUILD >= 4714
if( p_codec->pix_fmts )
{
const enum PixelFormat *p = p_codec->pix_fmts;
......@@ -372,6 +373,9 @@ int E_(OpenEncoder)( vlc_object_t *p_this )
if( *p == -1 ) p_context->pix_fmt = p_codec->pix_fmts[0];
p_enc->fmt_in.i_codec = E_(GetVlcChroma)( p_context->pix_fmt );
}
#else
p_enc->fmt_in.i_codec = E_(GetVlcChroma)( p_context->pix_fmt );
#endif
if ( p_sys->b_strict_rc )
{
......
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