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:
6510f43
)
fix segfault if flush is called before the first frame
author
Måns Rullgård
<mans@mansr.com>
Wed, 1 Jun 2005 12:03:25 +0000
(12:03 +0000)
committer
Måns Rullgård
<mans@mansr.com>
Wed, 1 Jun 2005 12:03:25 +0000
(12:03 +0000)
(I think that's it, and this fixes it)
Originally committed as revision 4335 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/h264.c
patch
|
blob
|
history
diff --git
a/libavcodec/h264.c
b/libavcodec/h264.c
index
fa419e8
..
f7475d0
100644
(file)
--- a/
libavcodec/h264.c
+++ b/
libavcodec/h264.c
@@
-3505,7
+3505,8
@@
static void flush_dpb(AVCodecContext *avctx){
h->delayed_pic[i]= NULL;
h->delayed_output_pic= NULL;
idr(h);
- h->s.current_picture_ptr->reference= 0;
+ if(h->s.current_picture_ptr)
+ h->s.current_picture_ptr->reference= 0;
}
/**