From patchwork Thu Dec 6 23:29:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carl Eugen Hoyos X-Patchwork-Id: 11320 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 4B97B44CEA7 for ; Fri, 7 Dec 2018 01:29:11 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 9512268A767; Fri, 7 Dec 2018 01:29:01 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-it1-f175.google.com (mail-it1-f175.google.com [209.85.166.175]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id B97C368A74B for ; Fri, 7 Dec 2018 01:28:55 +0200 (EET) Received: by mail-it1-f175.google.com with SMTP id b5so4386947iti.2 for ; Thu, 06 Dec 2018 15:29:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=R+cQXdGFSJ+1QayCKUzFAxh81uFqciKBZCBNUI/DQ1g=; b=E0A5YA/MBDkHhyGfWbDE3A27A5LLUm/fV5iknXW/1Q1ISotJEoAvrUVm/3pKC3bOwv SpXOFqPNGbkiCbvIIh1wMmTCvQuDw1lU2WAF3XXQ6P0CgsFhk+NaYZFyysDJWblpvwG3 0cPGAx9ss1LbDsvPu/1cn9tL31xsLpe3FvShYoL9jUs7tX5hfF9e2DuK9XrEBp0AaE+j zb7P2g+j3GQLpNjBWsCRWWirVBwmu+Pi6FunKvor+ZubQ/Q5VLbSOwlNvinnBcXMMOUc khEtslgJGWnjpyQxwO2cZNJBFYL2HX82fzJaPRsPka++qQS34ockKiEvVOIu1Plob3lx ZgLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=R+cQXdGFSJ+1QayCKUzFAxh81uFqciKBZCBNUI/DQ1g=; b=kF9uDARtAsyJqKsQ3g1yib0PinAvWin8EkknDp5eh2hJZEUr4tPhKxBvAl6yj8e03y vxFnTtp2IykuVrj4W6ykfwlCaoTu8+ufLLakZWMm87NmDULphLxYpz4VRcbraKgRhrjC Qg/9wusCIyW6ioEprMZUb5asJAij6pOQH93Uk/Lbmbufw072htyiZn3jrNNhdhBnx4Sa XfzPDgUdgX1uBj3M9O5bOUNGJycnBiWcGUPK8cPkL3byDdGMCagb7ZSBsC4FvAQaTwqs QAaRN0wlnASw46QoEqMCiaEMIP2JjhLhM9HpUOUtp5V6g0Z3wyhjCv9kY8uumuDBGbFx xoDQ== X-Gm-Message-State: AA+aEWbxf7R5DWH/nX8VgEPUtJOTUOjqb8CRPvkKEJsyfzwGeP/SdCzG knkbY+FuBSukftGA1Y9zNGU4pCfD1DoZwVBmCJU6Kg== X-Google-Smtp-Source: AFSGD/UdFkptjxw5EsjKE7v/Tj/Qzp0ONvcMwWOxEKLmC/CT66hSrPPDhmU8h/NU5QqNNLUz3yrc9RnQuG2zAEnRnIU= X-Received: by 2002:a24:b64a:: with SMTP id d10mr294498itj.149.1544138943685; Thu, 06 Dec 2018 15:29:03 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a02:5f11:0:0:0:0:0 with HTTP; Thu, 6 Dec 2018 15:29:02 -0800 (PST) From: Carl Eugen Hoyos Date: Fri, 7 Dec 2018 00:29:02 +0100 Message-ID: To: FFmpeg development discussions and patches Subject: [FFmpeg-devel] [PATCH]lavc/cbs_vp9: Avoid an implicit conversion from 255 to -1 X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Hi! Attached patch silences an ugly clang warning. Please comment, Carl Eugen From 20a643259b8e382bdfd759af78c36c3442c0affc Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Fri, 7 Dec 2018 00:26:40 +0100 Subject: [PATCH] lavc/cbs_vp9: Avoid an implicit conversion from 255 to -1. Silences a warning with clang: libavcodec/cbs_vp9_syntax_template.c:220:17: warning: implicit conversion from 'int' to 'int8_t' (aka 'signed char') changes value from 255 to -1 --- libavcodec/cbs_vp9.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/cbs_vp9.c b/libavcodec/cbs_vp9.c index c03ce98..95d147d 100644 --- a/libavcodec/cbs_vp9.c +++ b/libavcodec/cbs_vp9.c @@ -310,7 +310,7 @@ static int cbs_vp9_write_le(CodedBitstreamContext *ctx, PutBitContext *pbc, if (prob_coded) \ xf(8, name.prob, prob, subs, __VA_ARGS__); \ else \ - prob = 255; \ + prob = -1; \ current->name = prob; \ } while (0) -- 1.7.10.4