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 9B1AB40CC8 for ; Sat, 9 Apr 2022 18:29:34 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 9B66F68B2CC; Sat, 9 Apr 2022 21:29:31 +0300 (EEST) Received: from iq.passwd.hu (iq.passwd.hu [217.27.212.140]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 5C78368AF91 for ; Sat, 9 Apr 2022 21:29:25 +0300 (EEST) Received: from localhost (localhost [127.0.0.1]) by iq.passwd.hu (Postfix) with ESMTP id 362FAE67DF for ; Sat, 9 Apr 2022 20:29:25 +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 5ODOVZyoSq1o for ; Sat, 9 Apr 2022 20:29:20 +0200 (CEST) Received: from iq (iq [217.27.212.140]) by iq.passwd.hu (Postfix) with ESMTPS id 52ABEE50FF for ; Sat, 9 Apr 2022 20:29:20 +0200 (CEST) Date: Sat, 9 Apr 2022 20:29:20 +0200 (CEST) From: Marton Balint To: FFmpeg development discussions and patches In-Reply-To: <20220403100751.189390-1-aimingoff@pc.nifty.jp> Message-ID: <1e60df94-b44c-e296-1449-90707fd3c8c7@passwd.hu> References: <20220403100751.189390-1-aimingoff@pc.nifty.jp> MIME-Version: 1.0 Subject: Re: [FFmpeg-devel] [PATCH] libavformat/mpegts.c: fix to check end of each descriptor of SDT 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 Sun, 3 Apr 2022, TADANO Tokumei wrote: > Current code incorrectly check against end of section rather than > end of descriptor. Thanks, applied. Regards, Marton > > Signed-off-by: TADANO Tokumei > --- > libavformat/mpegts.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c > index da77b50669..ecffb01562 100644 > --- a/libavformat/mpegts.c > +++ b/libavformat/mpegts.c > @@ -2718,13 +2718,13 @@ static void sdt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len > > switch (desc_tag) { > case 0x48: > - service_type = get8(&p, p_end); > + service_type = get8(&p, desc_end); > if (service_type < 0) > break; > - provider_name = getstr8(&p, p_end); > + provider_name = getstr8(&p, desc_end); > if (!provider_name) > break; > - name = getstr8(&p, p_end); > + name = getstr8(&p, desc_end); > if (name) { > AVProgram *program = av_new_program(ts->stream, sid); > if (program) { > -- > 2.30.2 > > _______________________________________________ > 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".