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 0CF9240B81 for ; Thu, 7 Apr 2022 09:26:10 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id A42F668B245; Thu, 7 Apr 2022 12:26:06 +0300 (EEST) Received: from conssluserg-02.nifty.com (conssluserg-02.nifty.com [210.131.2.81]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 2AC4F68AE4E for ; Thu, 7 Apr 2022 12:25:58 +0300 (EEST) Received: from [192.168.0.9] (M106073025034.v4.enabler.ne.jp [106.73.25.34]) (authenticated) by conssluserg-02.nifty.com with ESMTP id 2379PZL2031086 for ; Thu, 7 Apr 2022 18:25:41 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com 2379PZL2031086 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1649323541; bh=3O9vWMi2YVE3c+28xboFnaqZhjV2hxXPfIra0o0Rx5Q=; h=Date:From:Subject:To:References:In-Reply-To:From; b=Q+ij+n7N1QCfIts3xGc1HsXbkIY5bCZO5tDGMVldNe9/ZC8HiLmxwFzq/UrUI1zEN gxAH/v54qxoPrAQGWsTjFSeX8cwfzq8kVYi7+b9mZcge00HOg8XuJsgyIgzmvgLv6J WtjJPBuV8IXww2HZqG9j9o0rz7oLx+J79QNsBntFyV21gGqqjTkxIAppU5Mqb9/MZb v5JnzQO2blAHGzqPlIVbPCNMcN3MKyTzG5+8+BhLYEvGgQgb0j0ZCPG2xghyMPJXTM uOcAbJDFf9pgfCrcHyc/XyDK021/3b3lfk0AHxLBd6sUwooMiwtJaHucoMCLQpyn+m 3flC72QICz/cQ== X-Nifty-SrcIP: [106.73.25.34] Message-ID: <5b2e2576-78a3-a826-394c-735dd68be972@pc.nifty.jp> Date: Thu, 7 Apr 2022 18:25:35 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 From: TADANO Tokumei Content-Language: en-US To: ffmpeg-devel@ffmpeg.org References: <20220403100751.189390-1-aimingoff@pc.nifty.jp> In-Reply-To: <20220403100751.189390-1-aimingoff@pc.nifty.jp> 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: will apply On 2022/04/03 19:07, TADANO Tokumei wrote: > Current code incorrectly check against end of section rather than > end of descriptor. > > 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) { _______________________________________________ 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".