Skip to content
Snippets Groups Projects
Commit 53f6ee83 authored by Steve Lhomme's avatar Steve Lhomme
Browse files

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.
parent 79f0b7ea
No related branches found
No related tags found
1 merge request!1743es_format: handle profile changes in Video ES
Pipeline #240664 passed with stage
in 20 minutes and 17 seconds
......@@ -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 )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment