Commit c39c4bd3 authored by Thomas Guillem's avatar Thomas Guillem

mediacodec: don't process output it input failed

parent 9a237055
......@@ -1183,7 +1183,7 @@ static picture_t *DecodeVideo(decoder_t *p_dec, block_t **pp_block)
if (p_block && i_input_ret == 0)
i_input_ret = PutInput(p_dec, env, p_block, timeout);
if (i_output_ret == 0)
if (i_input_ret != -1 && i_output_ret == 0)
{
/* FIXME: A new picture shouldn't be created each time.
* If decoder_NewPicture fails because the decoder is
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment