[FFmpeg-devel,1/3] lavf/cover_rect: Fix logic check issue

Submitted by Jun Zhao on May 8, 2019, 5:32 p.m.

Details

Message ID 1557336748-23144-1-git-send-email-mypopydev@gmail.com
State New
Headers show

Commit Message

Jun Zhao May 8, 2019, 5:32 p.m.
From: Jun Zhao <barryjzhao@tencent.com>

Fix logic check issue #6741

Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
---
 libavfilter/vf_cover_rect.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Michael Niedermayer May 9, 2019, 4:13 p.m.
On Thu, May 09, 2019 at 01:32:26AM +0800, Jun Zhao wrote:
> From: Jun Zhao <barryjzhao@tencent.com>
> 
> Fix logic check issue #6741
> 
> Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
> ---
>  libavfilter/vf_cover_rect.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)

LGTM

thx

[...]

Patch hide | download patch | download mbox

diff --git a/libavfilter/vf_cover_rect.c b/libavfilter/vf_cover_rect.c
index f7f6103..41cd1a1 100644
--- a/libavfilter/vf_cover_rect.c
+++ b/libavfilter/vf_cover_rect.c
@@ -152,7 +152,7 @@  static int filter_frame(AVFilterLink *inlink, AVFrame *in)
     }
 
     if (!xendptr || *xendptr || !yendptr || *yendptr ||
-        !wendptr || *wendptr || !hendptr || !hendptr
+        !wendptr || *wendptr || !hendptr || *hendptr
     ) {
         return ff_filter_frame(ctx->outputs[0], in);
     }