[FFmpeg-devel] Increase robustness of h.264b decoder

Erik Kaashoek erik
Mon Dec 8 07:49:01 CET 2008

Please be gentle as this is my first post

By inserting the return -1; statement in the h264.c file as shown below the
decoder becomes much more robust against crashing

for(list=0; list<h->list_count; list++){
for(index= 0; index < h->ref_count[list]; index++){
av_log(h->s.avctx, AV_LOG_ERROR, "Missing reference
h->ref_list[list][index]= s->current_picture; //FIXME this
is not a sensible solution
return -1; //**** Added for robustness

More information about the ffmpeg-devel mailing list