You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02: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:
@@ -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++;
|
||||
}
|
||||
|
Reference in New Issue
Block a user