[libav-devel] [PATCH 2/5] lavc: Add coded bitstream read/write support for MPEG-2

2017-08-14 Thread Mark Thompson
Also enable MPEG-2 support in the trace_headers filter. --- * Updated to add build system. * Writing support is redone to not have a huge buffer. * Cleaned the tricky part of the split setup a bit. * Unit free actually implemented so it doesn't leak all the memory. configure

[libav-devel] [PATCH 3/5] lavc: Add mpeg2_metadata bitstream filter

2017-08-14 Thread Mark Thompson
--- configure | 1 + doc/bitstream_filters.texi | 36 libavcodec/Makefile | 1 + libavcodec/bitstream_filters.c | 1 + libavcodec/mpeg2_metadata_bsf.c | 356 5 files changed, 395 insertions(+) create

[libav-devel] [PATCH 1/5] cbs_h2645: Return error if writing fails

2017-08-14 Thread Mark Thompson
--- The non-overflow case (noticed while writing similar code for MPEG-2). libavcodec/cbs_h2645.c | 5 + 1 file changed, 5 insertions(+) diff --git a/libavcodec/cbs_h2645.c b/libavcodec/cbs_h2645.c index 23556f47f..4d8ba99b3 100644 --- a/libavcodec/cbs_h2645.c +++ b/libavcodec/cbs_h2645.c

[libav-devel] [PATCH 4/5] vaapi_mpeg2: Convert to use coded bitstream infrastructure

2017-08-14 Thread Mark Thompson
--- configure | 2 +- libavcodec/vaapi_encode_mpeg2.c | 683 2 files changed, 475 insertions(+), 210 deletions(-) diff --git a/configure b/configure index 3e5784f85..49db3fb3a 100755 --- a/configure +++ b/configure @@ -2301,7

[libav-devel] [PATCH 5/5] mpeg2enc: Don't mark all streams as component video

2017-08-14 Thread Mark Thompson
Since there is no information about the source format, "unspecified" is the correct value to write here. All tests using the MPEG-2 encoder are updated, as this changes the header on all outputs. --- The actual diffs are all trivial, e.g. for fate-lavf-mxf: # $ diff -u <(hd before.mxf) <(hd