]> git.sesse.net Git - ffmpeg/commitdiff
avformat/m4vdec: Use the same constant names as libavcodec
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 30 Apr 2018 16:09:41 +0000 (18:09 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 30 Apr 2018 18:39:56 +0000 (20:39 +0200)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/m4vdec.c

index ebc7ab4f811df92378013825c0fd6378cec35561..220daeb77516f4c4d972a61a467db331b01ca41e 100644 (file)
 #include "avformat.h"
 #include "rawdec.h"
 
-#define VISUAL_OBJECT_START_CODE       0x000001b5
-#define VOP_START_CODE                 0x000001b6
+#define VOS_STARTCODE        0x1B0
+#define USER_DATA_STARTCODE  0x1B2
+#define GOP_STARTCODE        0x1B3
+#define VISUAL_OBJ_STARTCODE 0x1B5
+#define VOP_STARTCODE        0x1B6
 #define SLICE_STARTCODE      0x1B7
 #define EXT_STARTCODE        0x1B8
 
@@ -41,9 +44,9 @@ static int mpeg4video_probe(AVProbeData *probe_packet)
         if (temp_buffer < 2)
             continue;
 
-        if (temp_buffer == VOP_START_CODE)
+        if (temp_buffer == VOP_STARTCODE)
             VOP++;
-        else if (temp_buffer == VISUAL_OBJECT_START_CODE)
+        else if (temp_buffer == VISUAL_OBJ_STARTCODE)
             VISO++;
         else if (temp_buffer >= 0x100 && temp_buffer < 0x120)
             VO++;