libavcodec/hevc: reduce bracket differences to 064698d381

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer
2013-11-02 11:59:02 +01:00
parent ce7f1c76bd
commit 1a6948fa70
9 changed files with 74 additions and 92 deletions

View File

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