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 0284743656 for ; Mon, 20 Jun 2022 21:38:03 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id C397868B63F; Tue, 21 Jun 2022 00:38:00 +0300 (EEST) Received: from iq.passwd.hu (iq.passwd.hu [217.27.212.140]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 8EEE768B5C6 for ; Tue, 21 Jun 2022 00:37:54 +0300 (EEST) Received: from localhost (localhost [127.0.0.1]) by iq.passwd.hu (Postfix) with ESMTP id D29DAE71FA for ; Mon, 20 Jun 2022 23:37:54 +0200 (CEST) X-Virus-Scanned: amavisd-new at passwd.hu Received: from iq.passwd.hu ([127.0.0.1]) by localhost (iq.passwd.hu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id L_63P2R428cN for ; Mon, 20 Jun 2022 23:37:53 +0200 (CEST) Received: from iq (iq [217.27.212.140]) by iq.passwd.hu (Postfix) with ESMTPS id EAF89E6FA6 for ; Mon, 20 Jun 2022 23:37:52 +0200 (CEST) Date: Mon, 20 Jun 2022 23:37:52 +0200 (CEST) From: Marton Balint To: FFmpeg development discussions and patches In-Reply-To: <20220615053442.8300-1-cus@passwd.hu> Message-ID: <7126802c-963c-ce67-c7aa-12119fbec5@passwd.hu> References: <20220615053442.8300-1-cus@passwd.hu> MIME-Version: 1.0 Subject: Re: [FFmpeg-devel] [PATCH] avformat/mpegts: remove obsolate hacks for detecting streams with bad PMTs 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 Wed, 15 Jun 2022, Marton Balint wrote: > Ffmpeg/ffprobe/ffplay sets scan_all_pmts to 1 when finding the streams, that > should be enough to handle files for which some early PMTs miss some streams. > > Fixes ticket #9782. Will apply. Regards, Marton > > Signed-off-by: Marton Balint > --- > libavformat/mpegts.c | 12 ++---------- > 1 file changed, 2 insertions(+), 10 deletions(-) > > diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c > index 6e761c07f1..8a3436f2be 100644 > --- a/libavformat/mpegts.c > +++ b/libavformat/mpegts.c > @@ -2870,16 +2870,8 @@ static int handle_packet(MpegTSContext *ts, const uint8_t *packet, int64_t pos) > break; > } > if (i == ts->nb_prg && ts->nb_prg > 0) { > - int types = 0; > - for (i = 0; i < ts->stream->nb_streams; i++) { > - AVStream *st = ts->stream->streams[i]; > - if (st->codecpar->codec_type >= 0) > - types |= 1<codecpar->codec_type; > - } > - if ((types & (1< 100000) { > - av_log(ts->stream, AV_LOG_DEBUG, "All programs have pmt, headers found\n"); > - ts->stream->ctx_flags &= ~AVFMTCTX_NOHEADER; > - } > + av_log(ts->stream, AV_LOG_DEBUG, "All programs have pmt, headers found\n"); > + ts->stream->ctx_flags &= ~AVFMTCTX_NOHEADER; > } > } > > -- > 2.34.1 > > _______________________________________________ > 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". > _______________________________________________ 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".