[FFmpeg-devel] [PATCH 0/5] Fix mpeg1/2 stream copy
Nicolas Gaullier
nicolas.gaullier at cji.paris
Mon Dec 16 19:39:17 EET 2019
This is a complete rework of my previous post "avformat/mpegenc.c: vbvsize option".
Thanks to Michael and Hendrik for their feedbacks.
--
This fixes forwarding the vbv buffer size value to the output muxer.
In current code, the following case was broken for example:
ffmpeg -i input.mpg -vcodec copy output.mpg
NB: Back to v2.8.9 (before codecpar was introduced), it was working because of direct access to rc_buffer_size by the muxer.
Nicolas Gaullier (5):
fftools/ffmpeg: Fix forward CPB props in to out
fftools/ffmpeg: Reindent after last commit
avformat/utils: Use coded_side_data
avcodec/utils: Fix ff_add_cpb_side_data insert twice
avcodec/mpeg12dec: Add CPB coded side data
fftools/ffmpeg.c | 30 +++++++++++-------------------
libavcodec/mpeg12dec.c | 7 +++++++
libavcodec/utils.c | 5 +++++
libavformat/avformat.h | 11 +++++++++++
libavformat/utils.c | 18 ++++++++++++++++++
tests/ref/fate/mxf-probe-d10 | 3 +++
tests/ref/fate/ts-demux | 2 +-
7 files changed, 56 insertions(+), 20 deletions(-)
--
2.14.1.windows.1
More information about the ffmpeg-devel
mailing list