Browse Source

h264_parser: Fix order of operations

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
tags/n2.1
Michael Niedermayer Luca Barbato 11 years ago
parent
commit
19f5384000
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/h264_parser.c

+ 1
- 1
libavcodec/h264_parser.c View File

@@ -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)


Loading…
Cancel
Save