From patchwork Fri Sep 18 14:33:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhao Zhili X-Patchwork-Id: 22477 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 1D33144AB94 for ; Fri, 18 Sep 2020 17:33:58 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0BCD768B94F; Fri, 18 Sep 2020 17:33:58 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from qq.com (out203-205-221-157.mail.qq.com [203.205.221.157]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 35E2968B7E4 for ; Fri, 18 Sep 2020 17:33:49 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1600439623; bh=uBhF23taha0bLy8is8mqz4ctGrtz0TZaborh5oNh6ek=; h=From:To:Cc:Subject:Date; b=RihJw2a31igHIYAR3iw3IsUiH99gdv02XyKm4mt59XARQAZAI5euxk4At8Ntm0a6v HGPXdbIdbCIercWhAL0e5/cVUnIUqFyPYQPBBt2jjILhfjTMiFZ7ER014Ttwg/XHMv 3iJVMUm8fVu56uGkCKvXVhSO5lVDrE8GMXiUxH4k= Received: from localhost.localdomain ([27.46.80.20]) by newxmesmtplogicsvrsza8.qq.com (NewEsmtp) with SMTP id 86834E91; Fri, 18 Sep 2020 22:33:40 +0800 X-QQ-mid: xmsmtpt1600439620t3p61clgh Message-ID: X-QQ-XMAILINFO: M3/pVMGdUn80y8kRt9rCboNljFH/l9CVIVsQJebAmunT7D+T0zmynAAmCkpPoS 5niHsWVl9woTkACTc5tgFndGPrGvDJsyRG9iyYOfDEjLq//WDu4un4H2TDuHGYPcGfIGtLoFuTuZ W40R/6Pmwf68sDatlHkdiODjJo+raAwSZE+a2UNevbvFKDJf+m15EuiopBLIqlZygFCMzCnL4DSC DxVlhqyEafH7Dys1L22H62N7Ox6c4j2zGVkJFZjFO2wLYHte4jk/3OKkuvq0Z1aozn1xsz6V2PCW tWsHDDfEKWZdAyl7a3x/XntR0akpi1lyhh8rcoVj/Nah/kuAvIAJM517Abn/rRSLZWtBz6XCcp7E 6Ouf+bmC4LR6v77nSHKueraDR1exu48QNnz3i/ZPCad/wfdx/o24W2PKvzgPXeO8MkKYvQC8mXwy +ZCrtFhjjT59E2pzXDi02Hoz2UiT/B15p3aBdNdnXpUAbMEfjsM3fQ6CUwWo5mugx/bUPnXYxOTE fCG7zH7+L/YBcMbWAJ178wv9jhaSFzyjGRgdHk9g7Uiu3bH1eJ9x126DzmAy6YPd/lIcSe0qQkjz eKgo7ndLMI5EhjJYXhhL3eTjK+yMY1nycdPu1bUjC0FHHkGZUQ9vkIMf18PZxw1PYtQrGxWL/TXm lV5jw8iJx9as24g1CuTqgZgCZlJ9P9N9GhCWOCIrEjoIs4f4+6hlQliJoBfGm3sxZtYKAO6gs2S9 W8L+mdryHPzc4DwxtLND45bQ== From: Zhao Zhili To: ffmpeg-devel@ffmpeg.org Date: Fri, 18 Sep 2020 22:33:36 +0800 X-OQ-MSGID: <20200918143338.26104-1-quinkblack@foxmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 1/3] avformat/mov: replace multiple avio_r8() by avio_skip() 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: Zhao Zhili Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" From: Zhao Zhili --- libavformat/mov.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libavformat/mov.c b/libavformat/mov.c index 9462af743a..8c1243b48d 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -103,9 +103,7 @@ static int mov_metadata_int8_bypass_padding(MOVContext *c, AVIOContext *pb, unsigned len, const char *key) { /* bypass padding bytes */ - avio_r8(pb); - avio_r8(pb); - avio_r8(pb); + avio_skip(pb, 3); c->fc->event_flags |= AVFMT_EVENT_FLAG_METADATA_UPDATED; av_dict_set_int(&c->fc->metadata, key, avio_r8(pb), 0);