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

Alexander Strange astrange
Mon Dec 8 08:07:12 CET 2008


On Mon, Dec 8, 2008 at 1:49 AM, Erik Kaashoek <erik at kaashoek.com> wrote:
> 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

Do you have a sample file that crashes without this?

> for(list=0; list<h->list_count; list++){
> for(index= 0; index < h->ref_count[list]; index++){
> if(!h->ref_list[list][index].data[0]){
> av_log(h->s.avctx, AV_LOG_ERROR, "Missing reference
> picture\n");
> h->ref_list[list][index]= s->current_picture; //FIXME this
> is not a sensible solution
> return -1; //**** Added for robustness
> }
> }
> }
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel
>




More information about the ffmpeg-devel mailing list