Commit a86ebbf7 authored by Andreas Cadhalpun's avatar Andreas Cadhalpun

libschroedingerdec: don't produce empty frames

They are not valid and can cause problems/crashes for API users.
Reviewed-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
Signed-off-by: 's avatarAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
parent 90ebf3c4
......@@ -307,7 +307,7 @@ static int libschroedinger_decode_frame(AVCodecContext *avctx,
/* Grab next frame to be returned from the top of the queue. */
framewithpts = ff_schro_queue_pop(&p_schro_params->dec_frame_queue);
if (framewithpts && framewithpts->frame) {
if (framewithpts && framewithpts->frame && framewithpts->frame->components[0].stride) {
int ret;
if ((ret = ff_get_buffer(avctx, avframe, 0)) < 0)
......
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