From patchwork Fri Jun 2 21:10:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marton Balint X-Patchwork-Id: 3806 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.10.2 with SMTP id 2csp372762vsk; Fri, 2 Jun 2017 14:10:40 -0700 (PDT) X-Received: by 10.28.208.7 with SMTP id h7mr762546wmg.53.1496437840707; Fri, 02 Jun 2017 14:10:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496437840; cv=none; d=google.com; s=arc-20160816; b=kIsixXTplUuUBfKuFcGy9zbz1HTlVraToYCWAdiFPmq/aUib66wLOyfWtqG/M52zqm AtdfUGyPgJtyTAGY0k4w8ORIX/4zTJ1ainGdJK7dnR2QPCkei0fdJuybDqd0mwB4f5Us BvXOoRjoY750MaXdazHX/oA4FyUUYPGLaZEKEYkslOuHuBDzHP5whroGEexUqpzl1TvY xumfSbT2Hh8vwjvejO5hYwAHspSB+a913/7lCMyzBKPM/50WAT93RkV45tRYvGXluqdn VPuiojTYTH57B7qfH9XW1sxpAfKZMV3wc9qgEUFUGJ+hk9eYmHCFzQipHSEliOUxzOvk 0fXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:delivered-to:arc-authentication-results; bh=jujPsosVr7/Tm5vLLfEbemHhnSIjFGgAyBYuHDs5dKk=; b=Ncj9hVH/C7Vw+3l6BpHmj+Gum2n1y2v6rHKqPa/tTaDiLMrI5ABfn8Y8h80fEqWQgr H9Qv+z7hC73HTBV3M0X21kW9q+aEohKwtF+Xq6z4YWyKE0HsUuMGOXC6THMWC7z3xRLu oHe00K6LEO6KjyzqfpTnKhotBDAKHiuLEw8KpVA2wkDJHwB1GDN8Nso+NUcblJriVFIF hUV4jLA5LYL8VxyIP47VpXPm7RO80sJO3k0CU+oz3QVVmjg4eyracC+w1dPjFGIrDm1K /SbmhKW48QTEbSmoTVI86JKMOdjrL4blyVoQng2PM+evXMTFrt9gvjD5UUKS0HQb7AgM YFUw== 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 203si3833366wmf.50.2017.06.02.14.10.40; Fri, 02 Jun 2017 14:10:40 -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 95308689C12; Sat, 3 Jun 2017 00:10:23 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from iq.passwd.hu (iq.passwd.hu [217.27.212.140]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 6D5996806B8 for ; Sat, 3 Jun 2017 00:10:16 +0300 (EEST) Received: from localhost (localhost [127.0.0.1]) by iq.passwd.hu (Postfix) with ESMTP id 29D24102EDA; Fri, 2 Jun 2017 23:10:22 +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 McRgG44M4lxN; Fri, 2 Jun 2017 23:10:21 +0200 (CEST) Received: from bluegene.passwd.hu (localhost [127.0.0.1]) by iq.passwd.hu (Postfix) with ESMTP id 81DE21031A9; Fri, 2 Jun 2017 23:10:20 +0200 (CEST) From: Marton Balint To: ffmpeg-devel@ffmpeg.org Date: Fri, 2 Jun 2017 23:10:14 +0200 Message-Id: <20170602211014.4257-2-cus@passwd.hu> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170602211014.4257-1-cus@passwd.hu> References: <20170602211014.4257-1-cus@passwd.hu> Subject: [FFmpeg-devel] [PATCH 2/2] avformat/utils: change bitrate to int64_t in av_find_best_stream 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: Marton Balint MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Signed-off-by: Marton Balint --- libavformat/utils.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libavformat/utils.c b/libavformat/utils.c index b544b6f9c5..aa2a00552e 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -4098,8 +4098,10 @@ int av_find_best_stream(AVFormatContext *ic, enum AVMediaType type, { int i, nb_streams = ic->nb_streams; int ret = AVERROR_STREAM_NOT_FOUND; - int best_count = -1, best_bitrate = -1, best_multiframe = -1, best_disposition = -1; - int count, bitrate, multiframe, disposition; + int best_count = -1, best_multiframe = -1, best_disposition = -1; + int count, multiframe, disposition; + int64_t best_bitrate = -1; + int64_t bitrate; unsigned *program = NULL; const AVCodec *decoder = NULL, *best_decoder = NULL;