From patchwork Fri Oct 11 06:14:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lance Wang X-Patchwork-Id: 15698 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 9A482449919 for ; Fri, 11 Oct 2019 09:21:41 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 80F556883B3; Fri, 11 Oct 2019 09:21:41 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pl1-f193.google.com (mail-pl1-f193.google.com [209.85.214.193]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 81790688046 for ; Fri, 11 Oct 2019 09:21:35 +0300 (EEST) Received: by mail-pl1-f193.google.com with SMTP id d22so3988367pls.0 for ; Thu, 10 Oct 2019 23:21:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=gY0DJxd0ejeW/btK3BBfRIGlQtViJu7yTOXuwzMWk7s=; b=dLyRECA04mrsz8sdDIP78fM1w68k/5clg3hBDBeze0LlqSPOt5K55/Y7b4gKPOFVUV XdOXxloHS8S46sboEHo8LQYHxx/QnXkl3Xe9pgRqBc8GzqsIbrlrJsLkJrjCPjQ6Vq5X M4ArFKNreBio8iRbb/gGxnf5MCTq+1N/OrNW/jvoKVil5mUGxC5jvbCmlPoVDpe2Q2im 6AzzQSk1mzMjiftAiYKARi89G77TL7I8r9l3WcJ+HXQ88AfR4WRI06f5F8hkDuSK0zwR XKUvXXZIklW7JfrB0Dts9SPz4cHOrQQyBWrwvTBp88qKcR5A7wV88GFRqa4xOcrQkTVP 1voA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=gY0DJxd0ejeW/btK3BBfRIGlQtViJu7yTOXuwzMWk7s=; b=f6c7GaAIc4Gp85ENUqu46asqM+IFyl15fGZG6BGL8fx+lQA9GNnugnSBg68AC0Fhck ma2pIjPxtwW9ufPXlPUOLirCyFSQrIjXTVqDciEUag/3qsKTa6x0ljhXNp3lmG2CRp9W SMEANnm2JfLCds8uaL9AHM2uu9kjrM559M8TwhJ9mnP9sXITPkyJWlCu3lJIELwO4buM lq2qhOyQnA8UvjR2skDj8LcnpHqoxvev6Nghk5VzwhTc3r3SXDPtioBj969q0Rq7ZFSf vphH+sxWykzuL9qgY3QQjrJzt9J3nBp61iGgo0xbGMloYVXTx5HLk90DAGgXfHc4Pupv 5QXQ== X-Gm-Message-State: APjAAAW1hgxr390gjtRXbjhlqK1361B75SUOOXd5a03UaEhdylykDbm/ YLsYecYDySmSPXu4/MH9CvYfDdU7 X-Google-Smtp-Source: APXvYqzZv7ml7SORNu20GRMsYWHVUk+Y4hLXuwpPgVQJzx0jWRnt/M3GsRcPdk/ZaEgNNIIhhwJAag== X-Received: by 2002:a17:902:121:: with SMTP id 30mr13601177plb.167.1570774489336; Thu, 10 Oct 2019 23:14:49 -0700 (PDT) Received: from vpn.localdomain ([47.90.99.151]) by smtp.gmail.com with ESMTPSA id l62sm9692707pfl.167.2019.10.10.23.14.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Oct 2019 23:14:48 -0700 (PDT) From: lance.lmwang@gmail.com To: ffmpeg-devel@ffmpeg.org Date: Fri, 11 Oct 2019 14:14:39 +0800 Message-Id: <20191011061444.4988-1-lance.lmwang@gmail.com> X-Mailer: git-send-email 2.9.5 Subject: [FFmpeg-devel] [PATCH v1 1/6] avcodec/magicyuv: cosmetics 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 Cc: Limin Wang MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" From: Limin Wang Signed-off-by: Limin Wang --- libavcodec/magicyuv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/magicyuv.c b/libavcodec/magicyuv.c index 21a32785bc..0b1ac7345a 100644 --- a/libavcodec/magicyuv.c +++ b/libavcodec/magicyuv.c @@ -620,7 +620,7 @@ static int magy_decode_frame(AVCodecContext *avctx, void *data, } s->max = 1 << s->bps; s->magy_decode_slice = s->bps == 8 ? magy_decode_slice : magy_decode_slice10; - if ( s->bps == 8) + if (s->bps == 8) s->huff_build = huff_build; else s->huff_build = s->bps == 10 ? huff_build10 : huff_build12; @@ -640,7 +640,7 @@ static int magy_decode_frame(AVCodecContext *avctx, void *data, slice_width = bytestream2_get_le32(&gbyte); if (slice_width != avctx->coded_width) { - avpriv_request_sample(avctx, "Slice width %"PRIu32, slice_width); + avpriv_request_sample(avctx, "Slice width %"PRIu32"", slice_width); return AVERROR_PATCHWELCOME; } s->slice_height = bytestream2_get_le32(&gbyte);