New submission from alexander <[EMAIL PROTECTED]>:

Segfault in is_intra_more_likely() (error_resilience.c) caused by inconsistent
context data: s->last_picture_ptr is not NULL but all ptrs in
s->last_picture.data[] are NULL (must be decoder bug). The quick fix:

static int is_intra_more_likely(MpegEncContext *s){
    int is_intra_likely, i, j, undamaged_count, skip_amount, mb_x, mb_y;

    if(s->last_picture_ptr==NULL) return 1; //no previous frame available -> use
spatial prediction
    if(s->last_picture.data[0] == NULL) return 1; // <<<!!! ADDED LINE

----------
messages: 3102
nosy: axxell
priority: normal
status: new
substatus: analyzed
title: segfault decoding h264 stream with lost packets
type: bug

______________________________________________________
FFmpeg issue tracker <[EMAIL PROTECTED]>
<https://roundup.mplayerhq.hu/roundup/ffmpeg/issue631>
______________________________________________________

Reply via email to