mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-13 19:01:03 +00:00
avformat/hls_sample_encryption: Fix precedence
Fixes Coverity ticket #1492869. Reviewed-by: Steven Liu <lingjiujianke@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
ddd701fbbf
commit
945b2dcc63
@ -268,7 +268,7 @@ static int get_next_adts_frame(CodecParserContext *ctx, AudioFrame *frame)
|
||||
|
||||
/* Find next sync word 0xFFF */
|
||||
while (ctx->buf_ptr < ctx->buf_end - 1) {
|
||||
if (*ctx->buf_ptr == 0xFF && *(ctx->buf_ptr + 1) & 0xF0 == 0xF0)
|
||||
if (*ctx->buf_ptr == 0xFF && (*(ctx->buf_ptr + 1) & 0xF0) == 0xF0)
|
||||
break;
|
||||
ctx->buf_ptr++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user