[vlc-commits] dirac: Use GetDWLE

Hugo Beauzée-Luyssen git at videolan.org
Sun Nov 12 12:27:06 CET 2017


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Sun Nov 12 10:37:03 2017 +0100| [353084fa6470f60c6c61b5656051f5e372c5d780] | committer: Hugo Beauzée-Luyssen

dirac: Use GetDWLE

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

 modules/packetizer/dirac.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/packetizer/dirac.c b/modules/packetizer/dirac.c
index 6e8d7c50ba..e0950312f9 100644
--- a/modules/packetizer/dirac.c
+++ b/modules/packetizer/dirac.c
@@ -481,8 +481,8 @@ static bool dirac_UnpackParseInfo( parse_info_t *p_pi, block_bytestream_t *p_bs,
         return false;
 
     p_pi->i_parse_code = p_d[4];
-    p_pi->u_next_offset = p_d[5] << 24 | p_d[6] << 16 | p_d[7] << 8 | p_d[8];
-    p_pi->u_prev_offset = p_d[9] << 24 | p_d[10] << 16 | p_d[11] << 8 | p_d[12];
+    p_pi->u_next_offset = GetDWLE( &p_d[5] );
+    p_pi->u_prev_offset = GetDWLE( &p_d[9] );
     return true;
 }
 



More information about the vlc-commits mailing list