Browse Source

ffv1dec: propagate return code from ffv1_common_init()

Fixes Ticket1824
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.1
Michael Niedermayer 13 years ago
parent
commit
fdfbb793c3
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavcodec/ffv1dec.c

+ 2
- 1
libavcodec/ffv1dec.c View File

@@ -717,7 +717,8 @@ static av_cold int decode_init(AVCodecContext *avctx)
FFV1Context *f = avctx->priv_data;
int ret;

ffv1_common_init(avctx);
if ((ret = ffv1_common_init(avctx)) < 0)
return ret;

if (avctx->extradata && (ret = read_extra_header(f)) < 0)
return ret;


Loading…
Cancel
Save