From patchwork Sat Apr 15 22:18:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marton Balint X-Patchwork-Id: 41201 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:4645:b0:e3:3194:9d20 with SMTP id eb5csp1416525pzb; Sat, 15 Apr 2023 15:18:51 -0700 (PDT) X-Google-Smtp-Source: AKy350YyrEsd0UuP1h/VrISt6E8hZvP6FRxYkH3vXaiL1IUzHFaHGWD911VngN9FEUDOdKy3wer4 X-Received: by 2002:aa7:cd64:0:b0:506:747f:3bf0 with SMTP id ca4-20020aa7cd64000000b00506747f3bf0mr9390223edb.8.1681597131087; Sat, 15 Apr 2023 15:18:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681597131; cv=none; d=google.com; s=arc-20160816; b=x2nQZhTe9zaTWHBcvTVvrwRTLEYwQD1E/pDbua/P4fN0K8c5dYKJCM2wuHRlogNLdg 95QcJMN2rdfOlSZVdBatnRufDj8p9jVdJ9qHoPzGVSRGztYH/AdT94AaOMkcHpVgDoZD 4R/2RuDbCS/MQuHYGdjv27fhVqb4W8ehiYX66Xsnm1QijldXSV7Zq7Ar1VexNkTzzZgR O14hoiQ4d59eoYcbjd+fnWKbm8LZkLj1Lb/pZMuh/fb3dOG22IH+ZMMMPJIGuBmkfWdb fbQC6OmACSAiN1+ikMMzdTFXfQbEI5gzb5xEMMiUM8oH6HQy7K289LOF8SWrtw/wwSou wZxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:mime-version:message-id:date:to:from :delivered-to; bh=WVxA5xqGRylVOAW50zZIzB3zF3c9z0fHIl0qNm0BUQo=; b=BpAqI7vFMYLKzUYfpTwDTg1CAPLk6wqV0HABc2riE2f0Ct4l7mmRKQKQC8MiQ/4sJg UfBMLv52DE1w2pGVY86ODOGv9CfCINE4ZReasuv1U6V9M2bfOoyxJQIH0F6a4i64yLnk McKpRALu9EOEOJ9LJOwYRuWAqwzp2Zn7kAtboLZ2p9Yxgsxhc2LvCh82fxOZi68HmK7k 1kFs2XMNGFphJVB3om20eR7Xf+dLH+mrwe2dzzwvD8SIhH6HbTjZnEVUKoaN5IiJgM+z QnEwGsDmeHiPHSJNOFBuh1WT486OqfiqT+RWPM9/USzujI1uoJjUM9igfdoE6lxMdODl Pv0Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id fi4-20020a1709073ac400b0094efeef69c1si3035395ejc.1031.2023.04.15.15.18.50; Sat, 15 Apr 2023 15:18:51 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id AFCAB68BE10; Sun, 16 Apr 2023 01:18:47 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from iq.passwd.hu (unknown [217.27.212.140]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 20C746882A2 for ; Sun, 16 Apr 2023 01:18:41 +0300 (EEST) Received: from localhost (localhost [127.0.0.1]) by iq.passwd.hu (Postfix) with ESMTP id 9F9B7E8A15; Sun, 16 Apr 2023 00:18:01 +0200 (CEST) X-Virus-Scanned: amavisd-new at passwd.hu Received: from iq.passwd.hu ([127.0.0.1]) by localhost (iq.passwd.hu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id C3WHNHhQCKrk; Sun, 16 Apr 2023 00:18:00 +0200 (CEST) Received: from bluegene.passwd.hu (localhost [127.0.0.1]) by iq.passwd.hu (Postfix) with ESMTP id 58066E8A0F; Sun, 16 Apr 2023 00:18:00 +0200 (CEST) From: Marton Balint To: ffmpeg-devel@ffmpeg.org Date: Sun, 16 Apr 2023 00:18:34 +0200 Message-Id: <20230415221834.17204-1-cus@passwd.hu> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] avdevice/decklink_enc: fix operator precedence in create_s337_payload X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Marton Balint Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: vqWcUmzULFgY Signed-off-by: Marton Balint --- libavdevice/decklink_enc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavdevice/decklink_enc.cpp b/libavdevice/decklink_enc.cpp index 92bfdb279f..9f1a8df438 100644 --- a/libavdevice/decklink_enc.cpp +++ b/libavdevice/decklink_enc.cpp @@ -318,7 +318,7 @@ static int create_s337_payload(AVPacket *pkt, uint8_t **outbuf, int *outsize) /* Ensure final payload is aligned on 4-byte boundary */ if (pkt->size & 1) bytestream2_put_le16u(&pb, pkt->data[pkt->size - 1] << 8); - if ((pkt->size & 3 == 1) || (pkt->size & 3 == 2)) + if ((pkt->size & 3) == 1 || (pkt->size & 3) == 2) bytestream2_put_le16u(&pb, 0); *outsize = payload_size;