Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>2016-11-14 00:59:47 +0300
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>2016-11-16 21:30:49 +0300
commita86ebbf7f641bc797002ddea7fb517759722cd1b (patch)
treed03740091ddafc588de4dd552b7e59870a541e5a /libavcodec/libschroedingerdec.c
parent90ebf3c428352eb1d4116bf97b470ceca295d7d6 (diff)
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>
Diffstat (limited to 'libavcodec/libschroedingerdec.c')
-rw-r--r--libavcodec/libschroedingerdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libschroedingerdec.c b/libavcodec/libschroedingerdec.c
index c9930c717c..1e392b3f55 100644
--- a/libavcodec/libschroedingerdec.c
+++ b/libavcodec/libschroedingerdec.c
@@ -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)