[FFmpeg-devel] [PATCH v2 00/10] Added VideoToolbox H.264 Encoder.

2015-11-18 Thread kernrj
From: Rick Kern Updated patch with requested changes. Rick Kern (10): Added VideoToolbox H.264 encoder. vtenc: Enable hardware encoding on OSX. vtenc: Removed trailing whitespace. vtenc: Fixed iOS compilation. vtenc: Check for min iOS/OSX versions. Better VideoToolbox check in config

[FFmpeg-devel] [PATCH v2 01/10] Added VideoToolbox H.264 encoder.

2015-11-18 Thread kernrj
From: Rick Kern Enable with configure --enable-vtenc and encode using -codec:v vtenc_h264. Signed-off-by: Rick Kern --- MAINTAINERS|1 + configure | 14 + libavcodec/Makefile|1 + libavcodec/allcodecs.c |1 + libavcodec/vtenc.c | 1089

[FFmpeg-devel] [PATCH v2 02/10] vtenc: Enable hardware encoding on OSX.

2015-11-18 Thread kernrj
From: Rick Kern Use correct dictionary key/value to enable hardware encoding on OSX. Signed-off-by: Rick Kern --- libavcodec/vtenc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/vtenc.c b/libavcodec/vtenc.c index 06c5360..f497c38 100644 --- a/libavcodec/vtenc.c +++ b/libavcod

[FFmpeg-devel] [PATCH v2 03/10] vtenc: Removed trailing whitespace.

2015-11-18 Thread kernrj
From: Rick Kern Signed-off-by: Rick Kern --- libavcodec/vtenc.c | 308 ++--- 1 file changed, 154 insertions(+), 154 deletions(-) diff --git a/libavcodec/vtenc.c b/libavcodec/vtenc.c index f497c38..b363492 100644 --- a/libavcodec/vtenc.c +++ b/lib

[FFmpeg-devel] [PATCH v2 05/10] vtenc: Check for min iOS/OSX versions.

2015-11-18 Thread kernrj
From: Rick Kern configure was checking for the SDK version being used to compile. Now it compares against the minimum deployment target. Signed-off-by: Rick Kern --- configure | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure b/configure index e465424..718f28

[FFmpeg-devel] [PATCH v2 04/10] vtenc: Fixed iOS compilation.

2015-11-18 Thread kernrj
From: Rick Kern Removed dictionary keys that aren't supported on iOS builds. Signed-off-by: Rick Kern --- libavcodec/vtenc.c | 4 1 file changed, 4 insertions(+) diff --git a/libavcodec/vtenc.c b/libavcodec/vtenc.c index b363492..7132411 100644 --- a/libavcodec/vtenc.c +++ b/libavcodec/v

[FFmpeg-devel] [PATCH v2 08/10] vtenc: better allocation failure checking.

2015-11-18 Thread kernrj
From: Rick Kern Some memory allocations were unchecked. Signed-off-by: Rick Kern --- libavcodec/vtenc.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/libavcodec/vtenc.c b/libavcodec/vtenc.c index f0d8289..583244c 100644 --- a/libavcodec/vtenc.c +++ b/libavcode

[FFmpeg-devel] [PATCH v2 07/10] vtenc: check condition after conditional variable unblocks.

2015-11-18 Thread kernrj
From: Rick Kern Condition was not being verified after conditional variable unblocked. Signed-off-by: Rick Kern --- libavcodec/vtenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/vtenc.c b/libavcodec/vtenc.c index 7132411..f0d8289 100644 --- a/libavcodec/vten

[FFmpeg-devel] [PATCH v2 06/10] Better VideoToolbox check in configure.

2015-11-18 Thread kernrj
From: Rick Kern --- configure | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/configure b/configure index 718f285..f99fbd9 100755 --- a/configure +++ b/configure @@ -5474,17 +5474,7 @@ enabled openssl && { check_lib openssl/ssl.h SSL_library_init -lssl

[FFmpeg-devel] [PATCH v2 09/10] vtenc: check for NULL CMSampleBufferRef in encoder callback.

2015-11-18 Thread kernrj
From: Rick Kern The CMSampleBufferRef passed into the encoder can be NULL. Added check. Signed-off-by: Rick Kern --- libavcodec/vtenc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/vtenc.c b/libavcodec/vtenc.c index 583244c..78a918b 100644 --- a/libavcodec

[FFmpeg-devel] [PATCH v2 10/10] vtenc: Fixed mixed declarations and code.

2015-11-18 Thread kernrj
From: Rick Kern Moved all declarations to the top of their block. Signed-off-by: Rick Kern --- libavcodec/vtenc.c | 409 ++--- 1 file changed, 260 insertions(+), 149 deletions(-) diff --git a/libavcodec/vtenc.c b/libavcodec/vtenc.c index 78a918b