[vlc-commits] es_format: fix comparison if chroma is not set

Thomas Guillem git at videolan.org
Fri Mar 16 16:08:12 CET 2018


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Mar 16 15:20:31 2018 +0100| [f2342854a54c64210f5d85ddac2ab8344c1e65ab] | committer: Thomas Guillem

es_format: fix comparison if chroma is not set

but codec is set.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f2342854a54c64210f5d85ddac2ab8344c1e65ab
---

 src/misc/es_format.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/misc/es_format.c b/src/misc/es_format.c
index 98a130d40e..b8bef340e8 100644
--- a/src/misc/es_format.c
+++ b/src/misc/es_format.c
@@ -591,7 +591,7 @@ bool es_format_IsSimilar( const es_format_t *p_fmt1, const es_format_t *p_fmt2 )
             v1.i_chroma = vlc_fourcc_GetCodec( p_fmt1->i_cat, p_fmt1->i_codec );
         if( !v2.i_chroma )
             v2.i_chroma = vlc_fourcc_GetCodec( p_fmt2->i_cat, p_fmt2->i_codec );
-        return video_format_IsSimilar( &p_fmt1->video, &p_fmt2->video );
+        return video_format_IsSimilar( &v1, &v2 );
     }
 
     case SPU_ES:



More information about the vlc-commits mailing list