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:
authorMichael Niedermayer <michaelni@gmx.at>2007-09-09 21:01:11 +0400
committerMichael Niedermayer <michaelni@gmx.at>2007-09-09 21:01:11 +0400
commitdbd6a1fee8a7aa132858061c88e2bfa7b4321a20 (patch)
treeeb9b8b4dcc4ad3b293af94bf295c2ca05dadfab6 /libavcodec
parentb85bf991f63db00cbe9dc56d0a99a298018cd596 (diff)
do not ignore return of decode_header()
Originally committed as revision 10461 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/snow.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/snow.c b/libavcodec/snow.c
index a52cffcdce..b24cbb5def 100644
--- a/libavcodec/snow.c
+++ b/libavcodec/snow.c
@@ -4438,7 +4438,8 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8
ff_build_rac_states(c, 0.05*(1LL<<32), 256-8);
s->current_picture.pict_type= FF_I_TYPE; //FIXME I vs. P
- decode_header(s);
+ if(decode_header(s)<0)
+ return -1;
common_init_after_header(avctx);
// realloc slice buffer for the case that spatial_decomposition_count changed