avcodec/mpeg4video_parser: Avoid litteral 0x1B6, use named constant instead
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 30 Apr 2018 16:17:20 +0000 (18:17 +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>
libavcodec/mpeg4video_parser.c

index 32d3a83..9ebb09a 100644 (file)
@@ -46,7 +46,7 @@ int ff_mpeg4_find_frame_end(ParseContext *pc, const uint8_t *buf, int buf_size)
     if (!vop_found) {
         for (i = 0; i < buf_size; i++) {
             state = (state << 8) | buf[i];
-            if (state == 0x1B6) {
+            if (state == VOP_STARTCODE) {
                 i++;
                 vop_found = 1;
                 break;