diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2018-04-30 18:17:20 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2018-06-15 22:31:13 +0200 |
commit | dd3914c5b5f165d734155fe5bcb8c38d864a7c1c (patch) | |
tree | 2e0324dcc0ace0e05c5fbd08a3b19cec5248c2a1 /libavcodec | |
parent | 90c4c076c700b2864fc6042ce00af03c296da1d5 (diff) | |
download | ffmpeg-dd3914c5b5f165d734155fe5bcb8c38d864a7c1c.tar.gz |
avcodec/mpeg4video_parser: Avoid litteral 0x1B6, use named constant instead
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit c0aa89eeee2af2a4898258b29badea2f935a4836)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/mpeg4video_parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpeg4video_parser.c b/libavcodec/mpeg4video_parser.c index 32d3a83ebf..9ebb09a63e 100644 --- a/libavcodec/mpeg4video_parser.c +++ b/libavcodec/mpeg4video_parser.c @@ -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; |