From patchwork Fri Jun 26 00:47:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lance Wang X-Patchwork-Id: 20618 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 DE18644A741 for ; Fri, 26 Jun 2020 03:55:29 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id B3003688136; Fri, 26 Jun 2020 03:55:29 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pf1-f194.google.com (mail-pf1-f194.google.com [209.85.210.194]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id B767C6807F1 for ; Fri, 26 Jun 2020 03:55:22 +0300 (EEST) Received: by mail-pf1-f194.google.com with SMTP id 207so3699788pfu.3 for ; Thu, 25 Jun 2020 17:55:22 -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=fi029BKH812ZnDw0r41sqQNF2/SNgnvuY+sM87LLaHw=; b=GnpDN3sSxCXBEnnO0N341eb3RO8y6fyHQcGDNaPBQ/ij9szMkD8wfGeDgb6R78J4x5 5WmsmLC//yRe7DMiYxsoAnYve9u0qgYVnoFhsLLtEohEOw9BSgkyv3RrKSAe0bs70Gbh zBUDJFEY+R9RKeMrHv8PbW+rlRoJfA3efp+RNZCpof10alcTjhubLkgSdyBzklpjpXKz /5zlnv9VIeNY/eOZanRuYApS3n4EF1iF9y7hUC08a4J7+fLGthsUjjY3bajHvPLyFQfM QwBqs3tJ4CUm7nK6PWXF1uDPcEcaWhqC6GkLkLrxGpDLMqfhI0jZUKS2/tdcEmFipBjs IvbA== 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=fi029BKH812ZnDw0r41sqQNF2/SNgnvuY+sM87LLaHw=; b=trSE1lv9uWfZ3+HOYvmbA8/7jp8DsspzlzvS4bDqyUd13fNb/cV5cYdzjnYtR/PuBl dges1azGz4nDQ7PoXl/OoxV5AnRlrv2jaKDUAZ0BMiH7xkMhmz7uBAAT/OAaMloL69Us 01VXDcUJST5uS+alLmW7vdAiTo44z/AA6Z4c7t19u23stdC9QXFkO965pPElr7ZgbkRb 21nEDczut2odDksx034/rELJiCH5NOO3/D5wqxPgwtldPat7HlKmk/q+mt/SSG1ZpLc+ 4CWLBnkXwdvxo/fd7gpVX3EZ7YQghW9lrKrGr5ACIgBP7BrxYRwQ1ucZncUl1n4VeAJH B+Yg== X-Gm-Message-State: AOAM533CK3xzFetomrv7xngNOtgZjQebWERUowtRZqiMn2aXMH1p1f3R NN++umgSb4rFp+05coC/3mr7uI3S X-Google-Smtp-Source: ABdhPJyXVh2Mmd5DtQniFWxR72c8WlIuFHP9Kezz4DJvL33MOS+Lmba79ycmpAsY1C/EWDa2sSyW6g== X-Received: by 2002:aa7:8598:: with SMTP id w24mr376952pfn.2.1593132461327; Thu, 25 Jun 2020 17:47:41 -0700 (PDT) Received: from vpn2.localdomain ([161.117.202.209]) by smtp.gmail.com with ESMTPSA id f20sm3942768pfn.51.2020.06.25.17.47.40 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Jun 2020 17:47:40 -0700 (PDT) From: lance.lmwang@gmail.com To: ffmpeg-devel@ffmpeg.org Date: Fri, 26 Jun 2020 08:47:26 +0800 Message-Id: <1593132446-21202-6-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 6/6] avformat/gifdec: -1 -> 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/gifdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/gifdec.c b/libavformat/gifdec.c index a31644c..d617de5 100644 --- a/libavformat/gifdec.c +++ b/libavformat/gifdec.c @@ -144,7 +144,7 @@ static int gif_read_header(AVFormatContext *s) AVBPrint bp; int block_size; - av_bprint_init(&bp, 0, -1); + av_bprint_init(&bp, 0, AV_BPRINT_SIZE_UNLIMITED); while ((block_size = avio_r8(pb)) != 0) { avio_read_to_bprint(pb, &bp, block_size); }