Ticket #1855: dvdprevchaptersegv.diff

File dvdprevchaptersegv.diff, 550 bytes (added by mythdev@…, 18 years ago)

Patch for mythdvd prevchapter segv under xvmc

  • mythtv/libs/libavcodec/mpeg12.c

     
    27442744#endif
    27452745
    27462746    /* end of slice reached */
    2747     if (/*s->mb_y<<field_pic == s->mb_height &&*/ !s->first_field) {
     2747    if (/*s->mb_y<<field_pic == s->mb_height &&*/ !s->first_field
     2748                        && s->current_picture_ptr) {
    27482749        /* end of image */
    27492750
    27502751        s->current_picture_ptr->qscale_type= FF_QSCALE_TYPE_MPEG2;