mbox

[FFmpeg-devel,v6,0/5] Fix mpeg1/2 stream copy

Message ID 20200113185459.8908-1-nicolas.gaullier@cji.paris
Headers show

Message

Nicolas Gaullier Jan. 13, 2020, 6:54 p.m. UTC
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(-)