[libav-devel] [PATCH 1/2] smacker: add sanity check for length in smacker_decode_tree()

2017-11-08 Thread Sean McGovern
From: Michael Niedermayer Signed-off-by: Michael Niedermayer Bug-Id: 1098 Cc: libav-sta...@libav.org Signed-off-by: Sean McGovern --- libavcodec/smacker.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git

[libav-devel] [PATCH 2/2] smacker: limit recursion depth of smacker_decode_bigtree

2017-11-08 Thread Sean McGovern
From: Andreas Cadhalpun This fixes segmentation faults due to stack-overflow caused by too deep recursion. Reviewed-by: Michael Niedermayer Signed-off-by: Andreas Cadhalpun Signed-off-by: Sean McGovern

[libav-devel] [PATCH 09/14] h264_metadata: Fix clearing SEI payload in error case

2017-11-08 Thread Mark Thompson
--- libavcodec/h264_metadata_bsf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/h264_metadata_bsf.c b/libavcodec/h264_metadata_bsf.c index 33757cfb1..2b579e9d3 100644 --- a/libavcodec/h264_metadata_bsf.c +++ b/libavcodec/h264_metadata_bsf.c @@ -368,7 +368,7 @@

[libav-devel] [PATCH 13/14] lavc/vaapi_encode: Change the slice/parameter buffers to dynamic alloc.

2017-11-08 Thread Mark Thompson
From: Jun Zhao Change the slice/parameter buffers to be allocated dynamically. Signed-off-by: Wang, Yi A Signed-off-by: Jun Zhao Signed-off-by: Mark Thompson --- libavcodec/vaapi_encode.c | 42

[libav-devel] [PATCH 07/14] cbs_mpeg2: Fix marker_bit type

2017-11-08 Thread Mark Thompson
--- libavcodec/cbs_mpeg2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/cbs_mpeg2.c b/libavcodec/cbs_mpeg2.c index cd8e1b66d..5956f3933 100644 --- a/libavcodec/cbs_mpeg2.c +++ b/libavcodec/cbs_mpeg2.c @@ -54,7 +54,7 @@ xui(width, name, current->name)

[libav-devel] [PATCH 01/14] cbs: Allocate the context inside the init function

2017-11-08 Thread Mark Thompson
... instead of making the caller allocate it themselves. This is more consistent with other APIs in libav. --- libavcodec/cbs.c| 20 +--- libavcodec/cbs.h| 6 +++--- libavcodec/h264_metadata_bsf.c | 20 ++--

[libav-devel] [PATCH 12/14] lavc/vaapi_encode_h264: correct VUI max_dec_frame_buffering setting

2017-11-08 Thread Mark Thompson
From: Jun Zhao This should refer to the existing SPS structure, not the VAAPI sequence parameter buffer (which is not yet initialised). Signed-off-by: Jun Zhao Signed-off-by: Wang, Yi A Signed-off-by: Mark Thompson

[libav-devel] [PATCH 14/14] vaapi: Make the decode profile matching more explicit

2017-11-08 Thread Mark Thompson
Also fixes a bug where it could attempt to decode with an unsupported codec if allow-profile-mismatch was set. --- libavcodec/vaapi_decode.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/libavcodec/vaapi_decode.c b/libavcodec/vaapi_decode.c index

[libav-devel] [PATCH 11/14] lavc/vaapi_encode_h265: Enable VBR mode

2017-11-08 Thread Mark Thompson
From: Jun Zhao Follow vaapi_h264 style, enable the VBR mode. Signed-off-by: Jun Zhao Signed-off-by: Mark Thompson --- libavcodec/vaapi_encode_h265.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git

[libav-devel] [PATCH 03/14] cbs: Use correct conversion specifier for unit type

2017-11-08 Thread Mark Thompson
--- libavcodec/cbs_h2645.c | 2 +- libavcodec/cbs_mpeg2.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libavcodec/cbs_h2645.c b/libavcodec/cbs_h2645.c index a1b887fd4..c4739a946 100644 --- a/libavcodec/cbs_h2645.c +++ b/libavcodec/cbs_h2645.c @@ -1206,7 +1206,7 @@

[libav-devel] [PATCH 10/14] vaapi_h264: Add missing return value check

2017-11-08 Thread Mark Thompson
--- libavcodec/vaapi_encode_h264.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavcodec/vaapi_encode_h264.c b/libavcodec/vaapi_encode_h264.c index 15bd3be28..91c1cf72b 100644 --- a/libavcodec/vaapi_encode_h264.c +++ b/libavcodec/vaapi_encode_h264.c @@ -209,7 +209,9 @@

[libav-devel] [PATCH 02/14] cbs: Add an explicit type for coded bitstream unit types

2017-11-08 Thread Mark Thompson
--- libavcodec/cbs.c | 12 +++- libavcodec/cbs.h | 19 +++ 2 files changed, 22 insertions(+), 9 deletions(-) diff --git a/libavcodec/cbs.c b/libavcodec/cbs.c index 3ac0d4b32..a46548454 100644 --- a/libavcodec/cbs.c +++ b/libavcodec/cbs.c @@ -137,10 +137,10 @@ static int

[libav-devel] [PATCH 06/14] cbs: Add padding to slice data allocations

2017-11-08 Thread Mark Thompson
These may be read by the bitstream reader, so they should include the necessary padding for overreads. --- libavcodec/cbs_h2645.c | 10 -- libavcodec/cbs_mpeg2.c | 5 - 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/libavcodec/cbs_h2645.c b/libavcodec/cbs_h2645.c

[libav-devel] [PATCH 08/14] cbs_h2645: Fix memory leak on when reading SEI fails

2017-11-08 Thread Mark Thompson
--- libavcodec/cbs_h2645.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/cbs_h2645.c b/libavcodec/cbs_h2645.c index 52b61eb61..e3b5bf618 100644 --- a/libavcodec/cbs_h2645.c +++ b/libavcodec/cbs_h2645.c @@ -824,6 +824,7 @@ static int cbs_h264_read_nal_unit(CodedBitstreamContext

[libav-devel] [PATCH 05/14] cbs: Minor comment fixes / cosmetics

2017-11-08 Thread Mark Thompson
--- libavcodec/cbs.h | 35 +++ libavcodec/cbs_internal.h | 3 +++ 2 files changed, 34 insertions(+), 4 deletions(-) diff --git a/libavcodec/cbs.h b/libavcodec/cbs.h index 85c7b5557..ffeca057a 100644 --- a/libavcodec/cbs.h +++ b/libavcodec/cbs.h @@ -25,6

[libav-devel] [PATCH 04/14] cbs: Add a missing return value check

2017-11-08 Thread Mark Thompson
--- libavcodec/cbs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/cbs.c b/libavcodec/cbs.c index a46548454..e5819afce 100644 --- a/libavcodec/cbs.c +++ b/libavcodec/cbs.c @@ -274,7 +274,7 @@ int ff_cbs_write_packet(CodedBitstreamContext *ctx, if (err < 0)