[vlc-commits] svcdsub: Use existing helper

Hugo Beauzée-Luyssen git at videolan.org
Fri Nov 24 10:29:01 CET 2017


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Nov 23 16:35:11 2017 +0100| [9ec6f1ee59bccadbfdd7450431ea6788a5966068] | committer: Hugo Beauzée-Luyssen

svcdsub: Use existing helper

Should fix CID #1048969

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

 modules/codec/svcdsub.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/modules/codec/svcdsub.c b/modules/codec/svcdsub.c
index f0873a5a76..dcd545520d 100644
--- a/modules/codec/svcdsub.c
+++ b/modules/codec/svcdsub.c
@@ -69,10 +69,9 @@ static void ParseHeader( decoder_t *, block_t * );
 static subpicture_t *DecodePacket( decoder_t *, block_t * );
 static void SVCDSubRenderImage( decoder_t *, block_t *, subpicture_region_t * );
 
-#define GETINT16(p) ( (p[0] <<  8) +   p[1] )  ; p +=2;
+#define GETINT16(p) GetWBE(p)  ; p +=2;
 
-#define GETINT32(p) ( (p[0] << 24) +  (p[1] << 16) +    \
-                      (p[2] <<  8) +  (p[3]) ) ; p += 4;
+#define GETINT32(p) GetDWBE(p) ; p += 4;
 
 typedef enum  {
   SUBTITLE_BLOCK_EMPTY    = 0,



More information about the vlc-commits mailing list