[vlc-commits] demux: ts: fix opus signedness/warning

Francois Cartegnie git at videolan.org
Thu Mar 19 18:37:20 CET 2015


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Mar 18 17:52:28 2015 +0100| [0c78fd64e763a07d0170d1975ba82c8d5b3b6902] | committer: Francois Cartegnie

demux: ts: fix opus signedness/warning

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

 modules/demux/ts.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/ts.c b/modules/demux/ts.c
index df2abd8..35c9793 100644
--- a/modules/demux/ts.c
+++ b/modules/demux/ts.c
@@ -2060,7 +2060,7 @@ static block_t *Opus_Parse(demux_t *demux, block_t *block)
         last = &au->p_next;
 
         au->i_nb_samples = opus_frame_duration(buf, au_size);
-        if (end_trim && end_trim <= au->i_nb_samples)
+        if (end_trim && (uint16_t) end_trim <= au->i_nb_samples)
             au->i_length = end_trim; /* Blatant abuse of the i_length field. */
         else
             au->i_length = 0;



More information about the vlc-commits mailing list