Commit 98ea2ba6 authored by Rémi Duraffort's avatar Rémi Duraffort

Fix compilation with old ffmpeg.

parent a8275171
...@@ -87,18 +87,15 @@ struct filter_sys_t ...@@ -87,18 +87,15 @@ struct filter_sys_t
int OpenFilter( vlc_object_t *p_this ) int OpenFilter( vlc_object_t *p_this )
{ {
filter_t *p_filter = (filter_t *)p_this; filter_t *p_filter = (filter_t *)p_this;
int i_ffmpeg_chroma[2], i_vlc_chroma[2], i; int i_ffmpeg_chroma[2];
/* /*
* Check the source chroma first, then the destination chroma * Check the source chroma first, then the destination chroma
*/ */
i_vlc_chroma[0] = p_filter->fmt_in.video.i_chroma; if( GetFfmpegChroma( &i_ffmpeg_chroma[0], p_filter->fmt_in.video ) == VLC_EGENERIC )
i_vlc_chroma[1] = p_filter->fmt_out.video.i_chroma; return VLC_EGENERIC;
for( i = 0; i < 2; i++ ) if( GetFfmpegChroma( &i_ffmpeg_chroma[1], p_filter->fmt_out.video ) == VLC_EGENERIC )
{ return VLC_EGENERIC;
i_ffmpeg_chroma[i] = GetFfmpegChroma( i_vlc_chroma[i] );
if( i_ffmpeg_chroma[i] < 0 ) return VLC_EGENERIC;
}
p_filter->pf_video_filter = Conversion_Filter; p_filter->pf_video_filter = Conversion_Filter;
......
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