[vlc-devel] [PATCH 6/7] mediacodec: allow interlaced picture only after API 21
Thomas Guillem
thomas at gllm.fr
Mon Apr 27 15:16:50 CEST 2015
---
modules/codec/omxil/android_mediacodec.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/modules/codec/omxil/android_mediacodec.c b/modules/codec/omxil/android_mediacodec.c
index 4679b11..59126bb 100644
--- a/modules/codec/omxil/android_mediacodec.c
+++ b/modules/codec/omxil/android_mediacodec.c
@@ -1396,6 +1396,14 @@ static picture_t *DecodeVideo(decoder_t *p_dec, block_t **pp_block)
if (p_sys->error_state)
goto endclean;
+ /* Allow interlaced picture only after API 21 */
+ if (p_block && p_block->i_flags & BLOCK_FLAG_INTERLACED_MASK
+ && !(jfields.get_input_buffer && jfields.get_output_buffer))
+ {
+ b_error = true;
+ goto endclean;
+ }
+
if (!(env = jni_get_env(THREAD_NAME)))
{
b_error = true;
--
2.1.4
More information about the vlc-devel
mailing list