diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-10-20 16:11:05 +0400 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2013-10-22 12:53:04 +0400 |
commit | 19f53840001a7afcdb57b2a797e363ec8081aba3 (patch) | |
tree | c728e35518be159caa8dce032c0a01c6920cfd1d /libavcodec/h264_parser.c | |
parent | f825d42bccdb9f89669a586951de7f66a81e80a5 (diff) |
h264_parser: Fix order of operations
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavcodec/h264_parser.c')
-rw-r--r-- | libavcodec/h264_parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264_parser.c b/libavcodec/h264_parser.c index e6e27042fd..4412b68b2c 100644 --- a/libavcodec/h264_parser.c +++ b/libavcodec/h264_parser.c @@ -201,7 +201,7 @@ static inline int parse_nal_units(AVCodecParserContext *s, case NAL_SLICE: case NAL_IDR_SLICE: // Do not walk the whole buffer just to decode slice header - if (state & 0x1f == NAL_IDR_SLICE || (state >> 5) & 0x3 == 0) { + if ((state & 0x1f) == NAL_IDR_SLICE || ((state >> 5) & 0x3) == 0) { /* IDR or disposable slice * No need to decode many bytes because MMCOs shall not be present. */ if (src_length > 60) |