# HG changeset patch # User mru # Date 1117627405 0 # Node ID 3247049dfc7a09804510fa558396a75220b2a975 # Parent 704c284c827abf07b519625d11179a5e8d4dc118 fix segfault if flush is called before the first frame (I think that's it, and this fixes it) diff -r 704c284c827a -r 3247049dfc7a h264.c --- a/h264.c Wed Jun 01 11:56:58 2005 +0000 +++ b/h264.c Wed Jun 01 12:03:25 2005 +0000 @@ -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; } /**