summaryrefslogtreecommitdiff
path: root/libavcodec/snowdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-03-21 21:02:02 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-03-21 21:02:02 +0100
commit2fb388fc9d0f3a232cf405b44c9a33c5660c12e9 (patch)
tree106c861f3c7eae9ad523aad8d6d9f73ef5236f3a /libavcodec/snowdec.c
parent296aa4ac01687206a0c914833f79d353718f9ac7 (diff)
avcodec/snowdec: forward error codes
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/snowdec.c')
-rw-r--r--libavcodec/snowdec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/snowdec.c b/libavcodec/snowdec.c
index 453274ba34..9d48b7bea0 100644
--- a/libavcodec/snowdec.c
+++ b/libavcodec/snowdec.c
@@ -418,8 +418,8 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
ff_build_rac_states(c, 0.05*(1LL<<32), 256-8);
s->current_picture->pict_type= AV_PICTURE_TYPE_I; //FIXME I vs. P
- if(decode_header(s)<0)
- return -1;
+ if ((res = decode_header(s)) < 0)
+ return res;
if ((res=ff_snow_common_init_after_header(avctx)) < 0)
return res;
@@ -441,8 +441,8 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
ff_snow_alloc_blocks(s);
- if(ff_snow_frame_start(s) < 0)
- return -1;
+ if((res = ff_snow_frame_start(s)) < 0)
+ return res;
//keyframe flag duplication mess FIXME
if(avctx->debug&FF_DEBUG_PICT_INFO)
av_log(avctx, AV_LOG_ERROR,