[vlc-commits] es_format: check i_profile similarity for audio

Thomas Guillem git at videolan.org
Thu Dec 21 10:53:08 CET 2017


vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Dec 20 11:20:55 2017 +0100| [202e96710b39a140ea48d536e556a4110475b0ca] | committer: Jean-Baptiste Kempf

es_format: check i_profile similarity for audio

(cherry picked from commit 93fca804f8e88047842b9b81ac5a539cd5a103b7)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 src/misc/es_format.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/misc/es_format.c b/src/misc/es_format.c
index 9ed9815814..1c9a78e1a4 100644
--- a/src/misc/es_format.c
+++ b/src/misc/es_format.c
@@ -589,6 +589,8 @@ bool es_format_IsSimilar( const es_format_t *p_fmt1, const es_format_t *p_fmt2 )
             a1.i_physical_channels != a2.i_physical_channels ||
             a1.i_chan_mode != a2.i_chan_mode )
             return false;
+        if( p_fmt1->i_profile != p_fmt2->i_profile )
+            return false;
         return true;
     }
 



More information about the vlc-commits mailing list