mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
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>
This commit is contained in:
parent
90c4c076c7
commit
dd3914c5b5
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user