From patchwork Mon Jan 13 18:54:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Gaullier X-Patchwork-Id: 17327 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 5A78244A9E2 for ; Mon, 13 Jan 2020 20:55:09 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 34F8668AFD5; Mon, 13 Jan 2020 20:55:09 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from smtp-2.arkena.net (smtp-2.arkena.net [95.81.173.75]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 65C5F68AF9D for ; Mon, 13 Jan 2020 20:55:03 +0200 (EET) Received: from secu2 (unknown [10.180.103.10]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp-2.arkena.net (Postfix) with ESMTPSA id 47xN7V4f55zHh8t; Mon, 13 Jan 2020 18:55:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=cji.paris; s=20150421; t=1578941702; bh=+bYwySuXlIYvPiHb+rgdfyuQIRQjbC3vASDJqbTi4Yw=; h=From:To:Cc:Subject:Date:Message-Id; b=jRGfayW3VCBqlZwfyXu186y6xtBkze115dZn77FRHFn6tH5chD/yCb+vpktFGGjcD ZCe/d45dQyvtgZNS4ug+cmU7fnvkiJh2lXTX/9QuN0GbdjTOA6IXKyLNOcGY9sN5Pa CuTLcSHjaq8cwjJTq2Zwif5+NOgvH8PMlx/hmrH0= Received: from arkena.com (unknown [172.16.3.159]) by secu2 (Postfix) with ESMTP id 2AD073FA6D; Mon, 13 Jan 2020 19:55:04 +0100 (CET) From: Nicolas Gaullier To: ffmpeg-devel@ffmpeg.org Date: Mon, 13 Jan 2020 19:54:54 +0100 Message-Id: <20200113185459.8908-1-nicolas.gaullier@cji.paris> X-Mailer: git-send-email 2.14.1.windows.1 Subject: [FFmpeg-devel] [PATCH v6 0/5] Fix mpeg1/2 stream copy 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 Cc: Nicolas Gaullier MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" This patch was initially composed of 7 patchs, the two first have been applied. There was no feedback on these remaining 5 patchs for long, but I just have catched in the patchwork that Michael asked me to repost the whole set to facilitate the review... So here it is! Thank you in advance for the review. For the record, the target use case is to fix things like this: ffmpeg -i xdcamhd.mxf -c:v copy output.mpg (And note that as a side effect, ffmpeg now reports the cpb and signaled bitrate of mpeg2 video inputs) Nicolas Nicolas Gaullier (5): avformat: Add av_stream_add_coded_side_data() avformat/utils: Make find_stream_info get side data from codec context fftools/ffmpeg: Use the new av_stream_add_coded_side_data() avcodec/utils: Fix ff_add_cpb_side_data() add twice avcodec/mpeg12dec: Add CPB coded side data doc/APIchanges | 3 +++ fftools/ffmpeg.c | 16 +++------------- libavcodec/mpeg12dec.c | 7 +++++++ libavcodec/utils.c | 5 +++++ libavformat/avformat.h | 11 +++++++++++ libavformat/utils.c | 18 ++++++++++++++++++ libavformat/version.h | 4 ++-- tests/ref/fate/mxf-probe-d10 | 3 +++ tests/ref/fate/ts-demux | 2 +- 9 files changed, 53 insertions(+), 16 deletions(-)