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 2AF604568E for ; Thu, 16 Feb 2023 08:01:01 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 36BD968BE9E; Thu, 16 Feb 2023 10:00:59 +0200 (EET) Received: from mout-p-101.mailbox.org (mout-p-101.mailbox.org [80.241.56.151]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 4687968B5F2 for ; Thu, 16 Feb 2023 10:00:53 +0200 (EET) Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:b231:465::202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4PHS764sPdz9sS3 for ; Thu, 16 Feb 2023 09:00:50 +0100 (CET) Message-ID: Date: Thu, 16 Feb 2023 13:30:38 +0530 MIME-Version: 1.0 Content-Language: en-US To: ffmpeg-devel@ffmpeg.org References: <20230209105519.1814-1-ffmpeg@gyani.pro> <20230209105519.1814-2-ffmpeg@gyani.pro> From: Gyan Doshi In-Reply-To: X-Rspamd-Queue-Id: 4PHS764sPdz9sS3 Subject: Re: [FFmpeg-devel] [PATCH v2 2/4] avformat/hls: relay programs to child muxers 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 2023-02-16 12:27 pm, Andreas Rheinhardt wrote: > Gyan Doshi: >> --- >> libavformat/hlsenc.c | 6 ++++++ >> 1 file changed, 6 insertions(+) >> >> diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c >> index 39df9becc7..0b66efad3e 100644 >> --- a/libavformat/hlsenc.c >> +++ b/libavformat/hlsenc.c >> @@ -907,6 +907,12 @@ static int hls_mux_init(AVFormatContext *s, VariantStream *vs) >> st->id = vs->streams[i]->id; >> } >> >> + for (i = 0; i < s->nb_programs; i++) { >> + ret = av_program_copy(oc, s, s->programs[i]->id, 0); >> + if (ret < 0) >> + av_log(s, AV_LOG_WARNING, "unable to transfer program %d to child muxer\n", s->programs[i]->id); >> + } >> + >> vs->start_pos = 0; >> vs->new_start = 1; >> > You intent to add this loop (including the error message) three times; > once is enough. Don't quite follow. You want me to break upon failure? Regards, Gyan _______________________________________________ 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".