OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3178a86
)
segfault fix
author
Michael Niedermayer
<michaelni@gmx.at>
Wed, 12 May 2004 02:50:48 +0000
(
02:50
+0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Wed, 12 May 2004 02:50:48 +0000
(
02:50
+0000)
Originally committed as revision 3128 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/svq1.c
patch
|
blob
|
history
diff --git
a/libavcodec/svq1.c
b/libavcodec/svq1.c
index
eaf0c3a
..
97b6db7
100644
(file)
--- a/
libavcodec/svq1.c
+++ b/
libavcodec/svq1.c
@@
-715,6
+715,12
@@
static int svq1_decode_frame(AVCodecContext *avctx,
int result, i, x, y, width, height;
AVFrame *pict = data;
+ *data_size=0;
+
+ if(buf==NULL && buf_size==0){
+ return 0;
+ }
+
/* initialize bit buffer */
init_get_bits(&s->gb,buf,buf_size*8);