[libav-devel] [PATCH 4/6] avcodec/h264_cabac: Fix CABAC+8x8dct in 4:4:4

2017-06-15 Thread Vittorio Giovara
From: Anton Mitrofanov Use the correct ctxIdxInc calculation for coded_block_flag. Keep old behavior for old versions of x264 for backward compatibility. --- libavcodec/h264_cabac.c | 47 +-- 1 file changed, 33 insertions(+), 14 deletions(-) diff --gi

[libav-devel] [PATCH 5/6] avcodec/h264_mb: Fix 8x8dct in lossless for new versions of x264

2017-06-15 Thread Vittorio Giovara
From: Anton Mitrofanov --- libavcodec/h264_mb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/h264_mb.c b/libavcodec/h264_mb.c index da6a31d577..917c6aa3fc 100644 --- a/libavcodec/h264_mb.c +++ b/libavcodec/h264_mb.c @@ -636,7 +636,7 @@ static av_always_inline vo

[libav-devel] [PATCH 1/6] avcodec/h264_slice: Also copy x264_build in ff_h264_update_thread_context()

2017-06-15 Thread Vittorio Giovara
From: Michael Niedermayer Fixes fate-h264-lossless Signed-off-by: Michael Niedermayer --- libavcodec/h264_slice.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c index c9f1dbb86f..0ce4127a1d 100644 --- a/libavcodec/h264_slice.c +++ b/libavc

[libav-devel] [PATCH 2/6] avcodec/h264: Don't reset the x264 build info once read

2017-06-15 Thread Vittorio Giovara
From: Anton Mitrofanov In order to fix fate-h264-lossless (change by Hendrik) --- libavcodec/h264_sei.c | 1 - libavcodec/h264dec.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/h264_sei.c b/libavcodec/h264_sei.c index 3ca2b7a6cd..a2151bfaf6 100644 --- a/libavco

[libav-devel] [PATCH 3/6] avcodec/h264: fix Lossless Decoding (Profile 244) for 8x8 Intra Prediction

2017-06-15 Thread Vittorio Giovara
From: Yogender Kumar Gupta This is limited to the case where x264_build = -1, to not break x264 decoding Signed-off-by: Michael Niedermayer --- libavcodec/h264_mb.c | 7 +++- libavcodec/h264pred.c | 2 ++ libavcodec/h264pred.h | 2 ++ libavcodec/h264pred_template

[libav-devel] [PATCH 6/6] avcodec/h264: Fix mix of lossless and lossy MBs decoding

2017-06-15 Thread Vittorio Giovara
From: Anton Mitrofanov --- libavcodec/h264_cabac.c | 16 libavcodec/h264_cavlc.c | 16 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/libavcodec/h264_cabac.c b/libavcodec/h264_cabac.c index c28f5680de..e6dc5258a4 100644 --- a/libavcodec/h264_ca

[libav-devel] [PATCH 1/4] movenc: use correct tag list for AVOutputFormat.codec_tag

2017-06-15 Thread John Stebbins
ff_mp4_obj_type contains the wrong type of tags for AVOutputFormat.codec_tag. AVOutputFormat.codec_tag is used to validate AVCodecParameters.codec_tag so needs to be the same type of tag. Creates new tag lists for mp4 and ismv. New tag lists support same list of codecs found in ff_mp4_obj_type. p

[libav-devel] [PATCH 3/4] movenc: write correct format hvcc when tag is hvc1

2017-06-15 Thread John Stebbins
--- libavformat/movenc.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index eb12431..0c1508f 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -727,7 +727,10 @@ static int mov_write_hvcc_tag(AVIOContext *pb, MOVTr

[libav-devel] [PATCH 4/4] movenc: allow alternative hvc1 h.265 codec tag

2017-06-15 Thread John Stebbins
If AVCodecParameters.codec_tag is 'hvc1' use it instead of 'hev1' for h.265 streams. QuickTime (and other Apple software) requires 'hvc1'. --- libavformat/movenc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 0c1508f..2ff4270 100644 --- a/li

[libav-devel] [PATCH 2/4] movenc: generalize codec_tag lookup code

2017-06-15 Thread John Stebbins
This simplifies the code and adds the capability to support alternative tags for the same codec_id --- libavformat/movenc.c | 137 ++- 1 file changed, 70 insertions(+), 67 deletions(-) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 6