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

Erik Kaashoek erik
Mon Dec 8 09:12:38 CET 2008


Can be downloaded from
ftp://ftp.kaashoek.com/himself-DirtyJobs
Mail me for the password
Erik.

Alexander Strange schreef:
> 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
>>
>>     
> _______________________________________________
> 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