Browse Source

libschroedingerdec: don't produce empty frames

They are not valid and can cause problems/crashes for API users.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
tags/n3.3
Andreas Cadhalpun 9 years ago
parent
commit
a86ebbf7f6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/libschroedingerdec.c

+ 1
- 1
libavcodec/libschroedingerdec.c View File

@@ -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)


Loading…
Cancel
Save