comparison h264.c @ 2751:3247049dfc7a libavcodec

fix segfault if flush is called before the first frame (I think that's it, and this fixes it)
author mru
date Wed, 01 Jun 2005 12:03:25 +0000
parents 135aa7d0bd17
children 975074f04b95
comparison
equal deleted inserted replaced
2750:704c284c827a 2751:3247049dfc7a
3503 int i; 3503 int i;
3504 for(i=0; i<16; i++) 3504 for(i=0; i<16; i++)
3505 h->delayed_pic[i]= NULL; 3505 h->delayed_pic[i]= NULL;
3506 h->delayed_output_pic= NULL; 3506 h->delayed_output_pic= NULL;
3507 idr(h); 3507 idr(h);
3508 h->s.current_picture_ptr->reference= 0; 3508 if(h->s.current_picture_ptr)
3509 h->s.current_picture_ptr->reference= 0;
3509 } 3510 }
3510 3511
3511 /** 3512 /**
3512 * 3513 *
3513 * @return the removed picture or NULL if an error occurs 3514 * @return the removed picture or NULL if an error occurs