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 3008E40A54 for ; Mon, 4 Apr 2022 21:35:32 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 9FCFA68B160; Tue, 5 Apr 2022 00:35:29 +0300 (EEST) Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com [209.85.167.47]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id B0FAA68AF88 for ; Tue, 5 Apr 2022 00:35:23 +0300 (EEST) Received: by mail-lf1-f47.google.com with SMTP id d5so19715425lfj.9 for ; Mon, 04 Apr 2022 14:35:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=jgV5yNOMKHac0NuDor+1FiSICInD/tIt6yDcL2wcdVU=; b=Smt87V7thIpTXbmHXFQTwiN2DM3IG3Kuy80yQitZu9CYauyYW/WIObQEGU1wSoGtDC BYzgcA7CpRgjuYeDvp/DpARPCMBPZRJ7+e9wjVPbSAT4azTjthuctk0ym5uJTgOxp0J0 3n/0Al8HT4X7l14HhCY158dhOBHcQvY0V/Jd5NmyRc5hmkm0Qc6zn9kYiUluaHXIayGo 38uXpkAzKEB5mir9XB2f2Mu6p0rbm8JAt4U/zvH9XAfFS69FMA7q/wIDSMhWEAHAaG5o lnj+1h1xVlfrHF0WC2E8RbtsUSs/oloNElF0QM1yO+hXpvhRS5lkvKq6oB7oJKvyhNcr JK5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=jgV5yNOMKHac0NuDor+1FiSICInD/tIt6yDcL2wcdVU=; b=iIRayl0OFzm6e7P5j1sTVYDuuHDVgUp+XhBtRTypJwd3VXCa93QLZ8nvcLNMP4md4h RDDhwLXGkJZMfuE6gqqKss92u4tL+N90XHaEhkty8gzMVLlejkhUhcyD7+XnrvbOHyT1 eVeZ53ow6U389XOre4SJKg71LJGjG4sCbsqGBaAMPq84UZk6QPCA+XgQbE6PR7UZknXL 68BiO1JO4cy9GSEKTrLxEZJR48Hx5vLAL4Lj8GmibOKoXnOBYI7B72DxdnBNMh7PpQiy YOlj/0YB99xYaeb0uYqbp61xrcIwbhmApbGRtSC0Kf4W9KrqJ5wxaU5072rnj311wyIp S+eg== X-Gm-Message-State: AOAM532b/cvpvuIIuylGbbhT9GSf7y8+5PyAPJUkvDQ37Yz+yThwC5jH hJ6UIxXv+8IaHU68Fgut3GgB2oS5UDT6/F1g1CW+CFgp X-Google-Smtp-Source: ABdhPJyvJ942aLBX22WYLGO9TWPibSlo0zws9iUVZC9pYHIn3aN50gp+k+ueZXgghOxz1DAtR9hDwDnTXahchmJx8oc= X-Received: by 2002:a05:6512:b18:b0:44a:9a1f:dcf6 with SMTP id w24-20020a0565120b1800b0044a9a1fdcf6mr261019lfu.4.1649108122854; Mon, 04 Apr 2022 14:35:22 -0700 (PDT) MIME-Version: 1.0 References: <20220404095312.21140-1-jeebjp@gmail.com> <08932f20-f51e-5157-7bb9-850774a17590@pc.nifty.jp> In-Reply-To: <08932f20-f51e-5157-7bb9-850774a17590@pc.nifty.jp> From: =?UTF-8?B?SmFuIEVrc3Ryw7Zt?= Date: Tue, 5 Apr 2022 00:35:11 +0300 Message-ID: To: FFmpeg development discussions and patches Subject: Re: [FFmpeg-devel] [PATCH] avformat/mpegts: set data broadcast streams as such 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-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: On Mon, Apr 4, 2022 at 7:32 PM TADANO Tokumei wrote: > > Ah, the variables should be int. > > On 2022/04/05 1:16, TADANO Tokumei wrote: > > ... and, it is better to check broken packet. > > Yes. I guess I'll swap those for ints, although I like having the original unsigned sizes :) . I think alternatively it could be checked whether there is enough data before hand, since the only error seems to be if there is not enough data available. In this case it would be three bytes I think, 16+8 bits. Jan _______________________________________________ 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".