summaryrefslogtreecommitdiff
path: root/libavcodec/hevc_parser.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-11-02 11:59:02 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-11-02 13:09:31 +0100
commit1a6948fa708d7f0a950f9caa0256e2d73740e924 (patch)
treeff6305cb10e9cf7883740dee311a2e42359338e0 /libavcodec/hevc_parser.c
parentce7f1c76bd8fc3b4b2dc013ea7e635ed26a8c9fd (diff)
libavcodec/hevc: reduce bracket differences to 064698d381e1e7790f21b0199a8930ea04e2e942
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/hevc_parser.c')
-rw-r--r--libavcodec/hevc_parser.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libavcodec/hevc_parser.c b/libavcodec/hevc_parser.c
index 3801e1ffa1..09de43fcd8 100644
--- a/libavcodec/hevc_parser.c
+++ b/libavcodec/hevc_parser.c
@@ -294,13 +294,12 @@ static int hevc_split(AVCodecContext *avctx, const uint8_t *buf, int buf_size)
state = (state << 8) | buf[i];
if (((state >> 8) & 0xFFFFFF) == START_CODE) {
int nut = (state >> 1) & 0x3F;
- if (nut >= NAL_VPS && nut <= NAL_PPS) {
+ if (nut >= NAL_VPS && nut <= NAL_PPS)
has_ps = 1;
- } else if (has_ps) {
+ else if (has_ps)
return i - 3;
- } else { // no parameter set at the beginning of the stream
+ else // no parameter set at the beginning of the stream
return 0;
- }
}
}
return 0;