From patchwork Thu Sep 19 22:17:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 15159 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 5FC6D4483B9 for ; Fri, 20 Sep 2019 01:24:38 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 4A257689DD1; Fri, 20 Sep 2019 01:24:38 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id E3ED5689DF4 for ; Fri, 20 Sep 2019 01:24:31 +0300 (EEST) Received: by mail-wm1-f65.google.com with SMTP id v17so131127wml.4 for ; Thu, 19 Sep 2019 15:24:31 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=cF5Q19tvDaVzo+iQMlJleLfYbSgXGn+bN0FQ2nQRaLY=; b=cu9V34fI/1LEbz/sMRaGNLQ6Fn/BwUW1NdQ2VmYtjjYnPYUpAMDpIGKL6QxrqsrkeA kJOtZiNkMP6XV9CyWDStG1qGd40WdcLcsqdVIHhPMfZvBrXSBUemfs/43lkoBn5wjeVC J9YnrKkEv8KEF7xRhl7axxVd7J4f0adeg3gGqOpER6CdHWW/+C1xDbFAH4YcZ8l28Ptl cH72F9aUhKEuIZ2Aqc+PoV+50TsPcQyPDb2A/rz5BCyQxG4Iu5MotN3IFvOdFodulkAO z6Bp1Z4WZUla61gyUcfqWYguEBBtx1MpeUNmg+xz9qHMD+8T2Jp4TLm24ToGraLjZWKp DQRQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=cF5Q19tvDaVzo+iQMlJleLfYbSgXGn+bN0FQ2nQRaLY=; b=IOIykPbX65aawewjiNFI1enJoQ6nt4S/2xnYlBhTl1ifieER17CILNWa2JxBuow5ga EKJuOsAueyopByd46cbmlVh5aZ43X2fiD+sAwu1hIzOPFiuAc2RSVsq+hMg5I0HixB7N dSZurWoEFo+k/t8dWnPyQMT1bJqbL77mIanWg+4rHWXE9dGUknse1ySeUXob5ks492l4 nkGP1PG81XSfZ9Fa57iwEHOGMiWIv28Bh75QaWMFs+9VOcE7u2xfxXUOckAFFdHifP9e xVAcKM5Ihbf9pd6FrkuuhmRzgfgOdlfBJHiYEJXXY7GUcW8Uwhw4BsmxIU7G65ed7QQz lRXQ== X-Gm-Message-State: APjAAAV9OczerXpQyVfScBIvjT46S9BDXC4+dXL1Nk6rDpA7CmwomffM jMNOGeWhfj2BCU1VE/yXq0SV2aZf X-Google-Smtp-Source: APXvYqzI0XleSjHjeG9zigP6pzRGOvUTpK/8jD8Ksfrk1rFifVzpAV4EKi1pm2PM9aZlqS71Vxjhcg== X-Received: by 2002:a1c:2d11:: with SMTP id t17mr102526wmt.147.1568931871293; Thu, 19 Sep 2019 15:24:31 -0700 (PDT) Received: from sblaptop.fritz.box (ipbcc0f857.dynamic.kabel-deutschland.de. [188.192.248.87]) by smtp.gmail.com with ESMTPSA id y12sm49955wrn.74.2019.09.19.15.24.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Sep 2019 15:24:30 -0700 (PDT) From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Fri, 20 Sep 2019 00:17:03 +0200 Message-Id: <20190919221706.16529-9-andreas.rheinhardt@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190919221706.16529-1-andreas.rheinhardt@gmail.com> References: <20190919221706.16529-1-andreas.rheinhardt@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 08/11] avformat/movenc: Fix undefined shift 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: Andreas Rheinhardt Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Fixes the movenc FATE-test. Signed-off-by: Andreas Rheinhardt --- libavformat/movenc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index edddfeeb00..ce9fc8c5aa 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -1,3 +1,4 @@ + /* * MOV, 3GP, MP4 muxer * Copyright (c) 2003 Thomas Raivio @@ -4511,7 +4512,8 @@ static int mov_write_sidx_tag(AVIOContext *pb, { int64_t pos = avio_tell(pb), offset_pos, end_pos; int64_t presentation_time, duration, offset; - int starts_with_SAP, i, entries; + unsigned starts_with_SAP; + int i, entries; if (track->entry) { entries = 1;