From patchwork Wed Nov 4 13:37:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lance Wang X-Patchwork-Id: 23387 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 655C1449C3C for ; Wed, 4 Nov 2020 15:37:41 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 2828F68AEEB; Wed, 4 Nov 2020 15:37:41 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pf1-f193.google.com (mail-pf1-f193.google.com [209.85.210.193]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 99C03687FFA for ; Wed, 4 Nov 2020 15:37:34 +0200 (EET) Received: by mail-pf1-f193.google.com with SMTP id e7so17262613pfn.12 for ; Wed, 04 Nov 2020 05:37:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=SzmHgFcCMA52AwjaJcabWbOJm4MZwhRQcefodOVi6x8=; b=HPQlXoEATNbahcZpuDPHghy6X/Lv5JWYmuECpM4Z0AcbyrG8Bd/GStrWHMOY81rI9H ZiL+LxB2C98epbTNEbL8VRlZy8HN8F8krohL45vqt4m7cOsemLEuWTMdbO2iimsauq/r o0Xburrmf8Ra1YJC+0DHMkRrunW943YybvMzYWMwq+vQefqPIrP0mAO9Z/CJikEu+b+t izu9GjmXuLW8CIUMHqxybTzvxrAdJ5XMvqIeQP+VpQTSAgHqWrOOI/lK/Muvgl87qxco aJRt2JwFVBDf9r+c6vKIFQ0zpB8nuaJrUHdBxC6lnUBNE3ewA10JDGIjq4gXARK1lI4g EN7g== 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; bh=SzmHgFcCMA52AwjaJcabWbOJm4MZwhRQcefodOVi6x8=; b=Y1UPyLujcpCfs99II5MbFQ/yeuF1j0AsR4Ugmq19ohpRq2EIPELmTbVgCEs10CtoHl Tcvuy+x+hF0K7dLCtz+fgJvWQ13gK7pNnPiRYhmzN/aVJFdGdX55+kBAuuxXPgP0IXID 3TmzaYf1+Gff24/6hP9lXNUttjRSKc/lrhZ6PiLj5eRmOV8eZKSzwELeaGcQ8w9t2NJy jRfSYFo+1oa9qGND219iYhM43nZZHLQRrJD2OqHS8wUjqzjQNF63/WVD/X5Oi2TKB8SO GIZHHMo2gKSn+lgpH6VLq3rFc607OM13yIUqyKhY0sCwT2V7Q29WFK+70+TpI0KvwPkM AYcA== X-Gm-Message-State: AOAM530lZq1pHXwwGRg3gpyYDRqbJpLzTaWnkUR/F0SxpWFjL6RcCrBd MYs/2RK2PhnJf0cUvsmveUnd85JeE/c= X-Google-Smtp-Source: ABdhPJw78e6AOX34Zt+U6MyZz/OXqmNeyYVBRNPuWAqVTU3lyI1zfZx9Wzo9smmKA88rv54CMHphgw== X-Received: by 2002:a17:90a:8c:: with SMTP id a12mr4340842pja.155.1604497052458; Wed, 04 Nov 2020 05:37:32 -0800 (PST) Received: from vpn2.localdomain ([161.117.202.209]) by smtp.gmail.com with ESMTPSA id l22sm2644198pff.27.2020.11.04.05.37.30 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Nov 2020 05:37:31 -0800 (PST) From: lance.lmwang@gmail.com To: ffmpeg-devel@ffmpeg.org Date: Wed, 4 Nov 2020 21:37:22 +0800 Message-Id: <1604497047-30429-1-git-send-email-lance.lmwang@gmail.com> X-Mailer: git-send-email 1.8.3.1 Subject: [FFmpeg-devel] [PATCH 1/6] avformat/rtsp: 16384 -> SDP_MAX_SIZE 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/rtsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 49c2d52..1b876c9 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -696,7 +696,7 @@ int ff_sdp_parse(AVFormatContext *s, const char *content) * * The Vorbis FMTP line can be up to 16KB - see xiph_parse_sdp_line * in rtpdec_xiph.c. */ - char buf[16384], *q; + char buf[SDP_MAX_SIZE], *q; SDPParseState sdp_parse_state = { { 0 } }, *s1 = &sdp_parse_state; p = content;