projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e29599
)
fix segfault on broken streams
author
Michael Niedermayer
<michaelni@gmx.at>
Thu, 9 Feb 2006 09:38:03 +0000
(09:38 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Thu, 9 Feb 2006 09:38:03 +0000
(09:38 +0000)
Originally committed as revision 4966 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/ffv1.c
patch
|
blob
|
history
diff --git
a/libavcodec/ffv1.c
b/libavcodec/ffv1.c
index
10ba21b
..
0f9b344
100644
(file)
--- a/
libavcodec/ffv1.c
+++ b/
libavcodec/ffv1.c
@@
-959,11
+959,14
@@
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8
p->pict_type= FF_I_TYPE; //FIXME I vs. P
if(get_rac(c, &keystate)){
p->key_frame= 1;
- read_header(f);
+ if(read_header(f) < 0)
+ return -1;
clear_state(f);
}else{
p->key_frame= 0;
}
+ if(!f->plane[0].state && !f->plane[0].vlc_state)
+ return -1;
p->reference= 0;
if(avctx->get_buffer(avctx, p) < 0){