projects
/
ffmpeg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
libavcodec/hevc: reduce bracket differences to 064698d381e1e7790f21b0199a8930ea04e2e942
[ffmpeg.git]
/
libavcodec
/
hevc_parser.c
diff --git
a/libavcodec/hevc_parser.c
b/libavcodec/hevc_parser.c
index
3801e1f
..
09de43f
100644
(file)
--- 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;
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;
has_ps = 1;
- } else if (has_ps) {
+ else if (has_ps)
return i - 3;
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;
- }
}
}
return 0;
}
}
return 0;