[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec h264.c,1.131,1.132

Måns Rullgård CVS mru
Wed Jun 1 14:03:29 CEST 2005


Update of /cvsroot/ffmpeg/ffmpeg/libavcodec
In directory mail:/var2/tmp/cvs-serv22709/libavcodec

Modified Files:
	h264.c 
Log Message:
fix segfault if flush is called before the first frame
(I think that's it, and this fixes it)


Index: h264.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/h264.c,v
retrieving revision 1.131
retrieving revision 1.132
diff -u -d -r1.131 -r1.132
--- h264.c	1 Jun 2005 08:43:40 -0000	1.131
+++ h264.c	1 Jun 2005 12:03:25 -0000	1.132
@@ -3505,7 +3505,8 @@
         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;
 }
 
 /**





More information about the ffmpeg-cvslog mailing list