From patchwork Sat Sep 24 10:06:07 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Carl Eugen Hoyos X-Patchwork-Id: 698 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.140.66 with SMTP id o63csp1003888vsd; Sat, 24 Sep 2016 03:06:20 -0700 (PDT) X-Received: by 10.194.82.72 with SMTP id g8mr11871523wjy.214.1474711580871; Sat, 24 Sep 2016 03:06:20 -0700 (PDT) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id y82si192272wmh.92.2016.09.24.03.06.18; Sat, 24 Sep 2016 03:06:20 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id BDA03689DBC; Sat, 24 Sep 2016 13:05:59 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from vie01a-dmta-pe03-1.mx.upcmail.net (vie01a-dmta-pe03-1.mx.upcmail.net [62.179.121.160]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id DC381689D92 for ; Sat, 24 Sep 2016 13:05:52 +0300 (EEST) Received: from [172.31.216.43] (helo=vie01a-pemc-psmtp-pe01) by vie01a-dmta-pe03.mx.upcmail.net with esmtp (Exim 4.87) (envelope-from ) id 1bnjqS-0003lr-BR for ffmpeg-devel@ffmpeg.org; Sat, 24 Sep 2016 12:06:08 +0200 Received: from [192.168.1.3] ([80.110.107.246]) by vie01a-pemc-psmtp-pe01 with SMTP @ mailcloud.upcmail.net id nN671t00C5Jzyoo01N68cc; Sat, 24 Sep 2016 12:06:08 +0200 X-SourceIP: 80.110.107.246 From: Carl Eugen Hoyos To: FFmpeg development discussions and patches Date: Sat, 24 Sep 2016 12:06:07 +0200 User-Agent: KMail/1.9.10 MIME-Version: 1.0 Message-Id: <201609241206.07073.cehoyos@ag.or.at> Subject: [FFmpeg-devel] [PATCH]lavf/mpegtsenc: Set min PID for data pkt to 0x0010 X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Hi! Attached patch fixes ticket #1673. ISO13818-1 indeed specifies in ยง2.4.3.3 that values up to 0xF are reserved. Please comment, Carl Eugen From 06371416c00eaf73430d1bb7d841167356adbe23 Mon Sep 17 00:00:00 2001 From: Sylvain Laurent Date: Sat, 24 Sep 2016 12:01:34 +0200 Subject: [PATCH] lavf/mpegtsenc: Set min PID for data pkt to 0x0010. Fixes ticket #1673. --- libavformat/mpegtsenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index fd849e5..c10a3bf 100644 --- a/libavformat/mpegtsenc.c +++ b/libavformat/mpegtsenc.c @@ -1843,7 +1843,7 @@ static const AVOption options[] = { { .i64 = 0x1000 }, 0x0010, 0x1f00, AV_OPT_FLAG_ENCODING_PARAM }, { "mpegts_start_pid", "Set the first pid.", offsetof(MpegTSWrite, start_pid), AV_OPT_TYPE_INT, - { .i64 = 0x0100 }, 0x0020, 0x0f00, AV_OPT_FLAG_ENCODING_PARAM }, + { .i64 = 0x0100 }, 0x0010, 0x0f00, AV_OPT_FLAG_ENCODING_PARAM }, { "mpegts_m2ts_mode", "Enable m2ts mode.", offsetof(MpegTSWrite, m2ts_mode), AV_OPT_TYPE_BOOL, { .i64 = -1 }, -1, 1, AV_OPT_FLAG_ENCODING_PARAM },