[FFmpeg-devel] [PATCH 5/8] lavc/vp9_raw_reorder_bsf: Fix operator ordering

Mark Thompson sw at jkqxz.net
Sun Sep 29 19:46:01 EEST 2019


Fixes CID 1413024.
---
 libavcodec/vp9_raw_reorder_bsf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/vp9_raw_reorder_bsf.c b/libavcodec/vp9_raw_reorder_bsf.c
index f19b4c7198..e55a358457 100644
--- a/libavcodec/vp9_raw_reorder_bsf.c
+++ b/libavcodec/vp9_raw_reorder_bsf.c
@@ -292,7 +292,7 @@ static int vp9_raw_reorder_filter(AVBSFContext *bsf, AVPacket *out)
             return err;
         }
 
-        if (in->data[in->size - 1] & 0xe0 == 0xc0) {
+        if ((in->data[in->size - 1] & 0xe0) == 0xc0) {
             av_log(bsf, AV_LOG_ERROR, "Input in superframes is not "
                    "supported.\n");
             av_packet_free(&in);
-- 
2.20.1



More information about the ffmpeg-devel mailing list