mirror of https://code.videolan.org/videolan/vlc
es_format: handle profile changes in Video ES
A profile change in a format is another sign the ES has changed. This is similar to the profile check for Audio.
This commit is contained in:
parent
79f0b7eab2
commit
53f6ee83fb
|
@ -561,6 +561,8 @@ bool es_format_IsSimilar( const es_format_t *p_fmt1, const es_format_t *p_fmt2 )
|
|||
{
|
||||
video_format_t v1 = p_fmt1->video;
|
||||
video_format_t v2 = p_fmt2->video;
|
||||
if( p_fmt1->i_profile != p_fmt2->i_profile )
|
||||
return false;
|
||||
if( !v1.i_chroma )
|
||||
v1.i_chroma = vlc_fourcc_GetCodec( p_fmt1->i_cat, p_fmt1->i_codec );
|
||||
if( !v2.i_chroma )
|
||||
|
|
Loading…
Reference in New Issue