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:
Steve Lhomme 2022-04-08 10:27:11 +02:00
parent 79f0b7eab2
commit 53f6ee83fb
1 changed files with 2 additions and 0 deletions

View File

@ -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 )