[vlc-devel] [PATCH 3/3] mediacodec: don't loose the first block when we can't deinterlace

Thomas Guillem thomas at gllm.fr
Fri Jan 20 17:06:10 CET 2017


---
 modules/codec/omxil/mediacodec.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/codec/omxil/mediacodec.c b/modules/codec/omxil/mediacodec.c
index a0879d771e..24cce4b601 100644
--- a/modules/codec/omxil/mediacodec.c
+++ b/modules/codec/omxil/mediacodec.c
@@ -1394,6 +1394,8 @@ static int DecodeCommon(decoder_t *p_dec, block_t **pp_block)
              * videos. See OMXCodec_GetQuirks() for a white list of decoders
              * that supported interlaced videos before Android 21. */
             msg_Warn(p_dec, "codec doesn't support interlaced videos");
+            decoder_DecodeAgain(p_dec, p_block);
+            *pp_block = NULL;
             goto end;
         }
 
-- 
2.11.0



More information about the vlc-devel mailing list