From patchwork Fri Jun 26 00:47:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lance Wang X-Patchwork-Id: 20617 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 4249544BC8F for ; Fri, 26 Jun 2020 03:47:50 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 31CD8689247; Fri, 26 Jun 2020 03:47:50 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pj1-f65.google.com (mail-pj1-f65.google.com [209.85.216.65]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id CC04D6881FE for ; Fri, 26 Jun 2020 03:47:41 +0300 (EEST) Received: by mail-pj1-f65.google.com with SMTP id cv18so1048978pjb.1 for ; Thu, 25 Jun 2020 17:47:41 -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; bh=nlp4VY9Tg8fsdwEDjFNwoXXFtJ4VQjI/qyGTXDfM4Ck=; b=a8QtFemcLfpFE0iT2pFPFB9u4mD9VH0IbtqQ4vMwRDG6g3EbkXwJH/jmd0aIPisnpm ui158RnSZa8IgN81PbbkVybtmb3uBqKUcOsAAAI4OQ+lsWhZ28Evc53bGHKqnS0M2HuQ r8U+FUBx9SIYDwSZZLAn+ilcbLA3ZbQTi35v+MtDyZpoomVZkM6JL4pEgCXRUtQP26xS rXOgTK1zYXTTGYeCw5GCodmqOQUNvQmSM5NDpAP79scSt2FxNUbC1aa0gyb1OcBADze1 6TBTuIAIj3jk9/YFgKcEWMEVZQd6eUwnzyyCUN5WM3CcZC3xLfxxB4lS96OlWMNMCnyl Ltfw== 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; bh=nlp4VY9Tg8fsdwEDjFNwoXXFtJ4VQjI/qyGTXDfM4Ck=; b=q3+sDVDrlRI9RWX00VGJPQMxxGjDQGpnn5VLI7n/qUeTmLAiqJdoNK8CkcAQGPbsD/ 5soHZMniqay7UyXBpr91syJnBF2QBER5rcEw7mckfooS1j5KLb9yrx3QAsFrG769Dua0 dmGWPjUMIuERzUE3Q0zeCr9TjK++wJoCDFpR6gkV0SgMsVr5RkNn3GEVlAP9AjWb1KFG jAxDPTtM+vzW5hmtRBc6XL9ft8bdWFnV0VIKINTUrBwaX17wttyWB0RGtq6X7DQ6Lx+O 5PvVQRoLYDcrL8ytPV/MOnqLaHLtMjUEaRoSbspCvClorwtyQrx+t4UIwRwFjCf0yZl6 rk5w== X-Gm-Message-State: AOAM533xuxRygQMVVA3YDQHBR9d9Fn42z8ecKNwnmboHmxgG1pZLOgxV EY0g2DIA4vyenC5TQGqdo+lm6e92 X-Google-Smtp-Source: ABdhPJxGw8zRLcNCOGqgkjbu8j4PSzmyPG0aYL4aIpNioLMOLCI9djhfXLT8UEn4jqkO2JLLHrY4hg== X-Received: by 2002:a17:90a:d998:: with SMTP id d24mr641360pjv.43.1593132459852; Thu, 25 Jun 2020 17:47:39 -0700 (PDT) Received: from vpn2.localdomain ([161.117.202.209]) by smtp.gmail.com with ESMTPSA id f20sm3942768pfn.51.2020.06.25.17.47.38 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Jun 2020 17:47:39 -0700 (PDT) From: lance.lmwang@gmail.com To: ffmpeg-devel@ffmpeg.org Date: Fri, 26 Jun 2020 08:47:25 +0800 Message-Id: <1593132446-21202-5-git-send-email-lance.lmwang@gmail.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1593132446-21202-1-git-send-email-lance.lmwang@gmail.com> References: <1593132446-21202-1-git-send-email-lance.lmwang@gmail.com> Subject: [FFmpeg-devel] [PATCH 5/6] avformat/aviobuf: INT_MAX -> AV_BPRINT_SIZE_UNLIMITED 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 --- libavformat/aviobuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c index a77517d..1e32c0c 100644 --- a/libavformat/aviobuf.c +++ b/libavformat/aviobuf.c @@ -1191,7 +1191,7 @@ int avio_printf(AVIOContext *s, const char *fmt, ...) va_list ap; AVBPrint bp; - av_bprint_init(&bp, 0, INT_MAX); + av_bprint_init(&bp, 0, AV_BPRINT_SIZE_UNLIMITED); va_start(ap, fmt); av_vbprintf(&bp, fmt, ap); va_end(ap);