[vlc-commits] demux: ts: fix mpeg SL od delete commands demuxing

Francois Cartegnie git at videolan.org
Fri Jan 19 18:45:22 CET 2018


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Jan 19 18:04:37 2018 +0100| [08209600e2fed235dc1eda424f8a783432a5b070] | committer: Francois Cartegnie

demux: ts: fix mpeg SL od delete commands demuxing

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

 modules/demux/mpeg/mpeg4_iod.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/demux/mpeg/mpeg4_iod.c b/modules/demux/mpeg/mpeg4_iod.c
index f9fa145e1f..a7a57d54fc 100644
--- a/modules/demux/mpeg/mpeg4_iod.c
+++ b/modules/demux/mpeg/mpeg4_iod.c
@@ -679,15 +679,15 @@ void DecodeODCommand( vlc_object_t *p_object, od_descriptors_t *p_ods,
         switch( i_tag )
         {
             case ODTag_ObjectDescrUpdate:
-                ObjectDescrUpdateCommandRead( p_object, p_ods, i_data, p_data );
+                ObjectDescrUpdateCommandRead( p_object, p_ods, i_length, p_data );
                 break;
             case ODTag_ObjectDescrRemove:
-                ObjectDescrRemoveCommandRead( p_object, p_ods, i_data, p_data );
+                ObjectDescrRemoveCommandRead( p_object, p_ods, i_length, p_data );
                 break;
             default:
                 break;
         }
         p_data += i_length;
-        i_data -= i_data;
+        i_data -= i_length;
     }
 }



More information about the vlc-commits mailing list