From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 3183240957 for ; Tue, 1 Feb 2022 19:12:40 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id F192568B468; Tue, 1 Feb 2022 21:12:37 +0200 (EET) Received: from mail-oi1-f178.google.com (mail-oi1-f178.google.com [209.85.167.178]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id B5CD568B2AC for ; Tue, 1 Feb 2022 21:12:31 +0200 (EET) Received: by mail-oi1-f178.google.com with SMTP id b186so29065541oif.1 for ; Tue, 01 Feb 2022 11:12:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :references:from:in-reply-to:content-transfer-encoding; bh=RIChRfpNdwBixeM70OkSwd7s/cKsfCZA26pw+9TvtFE=; b=espj2Syy9SOqar5nlMSOGZg8kIoVRoNumDH5Ru/gjebQnUUeypUFpmLUf85lEM4cLL 32rCuufryIdGiSObTgZv3ux1ThqtaJseNmr66KXzoZocHD8GOOIhd8pnzjnJRaNf+GIw MV8RH1Qny4Q9Fzmi+68nN89GJFHrrAyruhLDXC0kr8RQJwXeZHsdHF1ZoEVaabEw7f2e pecPjDAMKAQVuPQFUJHppJ6jLaNRMLJYduTNF9OHLNC6wVoMgSHVkfKYW3msV5SWoOJD SaessLWDyTtf9+rMaBaszBFXtTNLNythRNNaIl63pYpHQhuYgOmKgWuClNDsWIMCc13M A4bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=RIChRfpNdwBixeM70OkSwd7s/cKsfCZA26pw+9TvtFE=; b=ndpqCkx78AV0xv9I/Um1FfcNKDP1E2uACVXmHYjRzJ9Kx8FeP+WDmpjvH4do0gM29U sFpVX2MLx4xNtnW6OnN1jiutAq/6NB/VoqOukIwW0x1GNCTX2aKVsBsu3iFd6PuLjhgQ zf1FUOF6sxfjVYHFeEA98iikizC9Wbvd0S5+WeFFnx/Xk4pe0NbdD8lfmvHSHts2gkax HmIFDWQuGD78TSjQNwMksx+DLRjbRzfX9CmTVllgVydYVg/Lf+NJQRyiRcnq7TSz3NEL tl5jkSAxcJq8gUhExCh32NU30syN80IqhwVS/o11sg3buT5EvzZk00h0oD7CCatKUXwU puPw== X-Gm-Message-State: AOAM532fUJQ7aX5ede6QI55fXbGEaf3Qoz23+8k32vd12pH4vNyfHTeK ZZEEIc3TuMS7oTeBoRE5xXwiO0ARngE= X-Google-Smtp-Source: ABdhPJyDsNOOKe8BxhEF56HwxMor+Ud3GdB2G3/ckM/CEkLb4RQGK8sJzguM53ECAO5NR6wRc0HMjA== X-Received: by 2002:aca:aa14:: with SMTP id t20mr2089249oie.302.1643742749684; Tue, 01 Feb 2022 11:12:29 -0800 (PST) Received: from [192.168.0.10] ([186.136.131.95]) by smtp.gmail.com with ESMTPSA id m5sm10709320otk.78.2022.02.01.11.12.28 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 01 Feb 2022 11:12:29 -0800 (PST) Message-ID: <9d8ded14-e392-63e1-b43b-24c1f0646182@gmail.com> Date: Tue, 1 Feb 2022 16:12:26 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 Content-Language: en-US To: ffmpeg-devel@ffmpeg.org References: <20220116051916.342B441047A@natalya.videolan.org> <20220201184738.GE2978559@pb2> From: James Almer In-Reply-To: <20220201184738.GE2978559@pb2> Subject: Re: [FFmpeg-devel] [FFmpeg-cvslog] avformat/mpegts: add option max_packet_size X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 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 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: On 2/1/2022 3:47 PM, Michael Niedermayer wrote: > On Sun, Jan 16, 2022 at 05:19:15AM +0000, Gyan Doshi wrote: >> ffmpeg | branch: master | Gyan Doshi | Wed Jan 12 20:57:59 2022 +0530| [bca30570d28bbaa07badadabf55ec3589201a82f] | committer: Gyan Doshi >> >> avformat/mpegts: add option max_packet_size >> >> Makes maximum size of emitted packet user-tunable. >> >> Default is existing 204800 bytes. >> >>> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bca30570d28bbaa07badadabf55ec3589201a82f >> --- >> >> doc/demuxers.texi | 4 ++++ >> libavformat/mpegts.c | 11 ++++++----- >> 2 files changed, 10 insertions(+), 5 deletions(-) > > Since this commit there is occasional memory corruption occuring > > libavutil 57. 18.100 / 57. 18.100 > libavcodec 59. 20.100 / 59. 20.100 > libavformat 59. 17.101 / 59. 17.101 > libavdevice 59. 5.100 / 59. 5.100 > libavfilter 8. 25.100 / 8. 25.100 > libswscale 6. 5.100 / 6. 5.100 > libswresample 4. 4.100 / 4. 4.100 > libpostproc 56. 4.100 / 56. 4.100 > invalid fastbin entry (free) > doom/rtp-video: line 14: 15621 Aborted (core dumped) ./ffmpeg_g -bitexact -protocol_whitelist http,tcp,rtp,udp -i http://127.0.0.1:8080/test.sdp -bitexact -acodec mp2 -ab 64k -y -t 1 -threads 1 $TMP/out.avi > Command exited with non-zero status 134 Is the demuxer used in this scenario mpegts or mpegtsraw? The new option was added to the former but not the latter, yet if both read MpegTSContext.max_packet_size, for mpegtsraw it will always be 0. The option might need to be added to that demuxer too. _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".