Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-10-20 01:44:34 +0400
committerMichael Niedermayer <michaelni@gmx.at>2013-10-20 01:44:34 +0400
commit9c0fe487c755c19da48f4cc76aba1ac0931b5863 (patch)
treec592a8322d272b18b5f451f48f34a9f6f6476079 /libavcodec/h264_parser.c
parent62533eab6fb1d11e47bf88e31c02de454311e8c2 (diff)
avcodec/h264_parser: fix order of operations
Fixes CID1108576 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h264_parser.c')
-rw-r--r--libavcodec/h264_parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264_parser.c b/libavcodec/h264_parser.c
index 11e6e138ce..2bf6277a37 100644
--- a/libavcodec/h264_parser.c
+++ b/libavcodec/h264_parser.c
@@ -249,7 +249,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)