projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f825d42
)
h264_parser: Fix order of operations
author
Michael Niedermayer
<michaelni@gmx.at>
Sun, 20 Oct 2013 12:11:05 +0000
(12:11 +0000)
committer
Luca Barbato
<lu_zero@gentoo.org>
Tue, 22 Oct 2013 08:53:04 +0000
(10:53 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavcodec/h264_parser.c
patch
|
blob
|
history
diff --git
a/libavcodec/h264_parser.c
b/libavcodec/h264_parser.c
index
e6e2704
..
4412b68
100644
(file)
--- 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)