[svn] / trunk / xvidcore / src / decoder.c Repository:
ViewVC logotype

Diff of /trunk/xvidcore/src/decoder.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2177, Sun Nov 3 11:50:49 2019 UTC revision 2197, Thu Jan 27 17:47:14 2022 UTC
# Line 1538  Line 1538 
1538      img = &dec->tmp;      img = &dec->tmp;
1539    }    }
1540    
1541    if ((frame->output.plane[0] != NULL) && (frame->output.stride[0] >= dec->width)) {    if ((frame->output.csp == XVID_CSP_INTERNAL) ||
1542          ((frame->output.plane[0] != NULL) && (frame->output.stride[0] >= dec->width))) {
1543      image_output(img, dec->width, dec->height,      image_output(img, dec->width, dec->height,
1544             dec->edged_width, (uint8_t**)frame->output.plane, frame->output.stride,             dec->edged_width, (uint8_t**)frame->output.plane, frame->output.stride,
1545             frame->output.csp, dec->interlacing);             frame->output.csp, dec->interlacing);
# Line 1666  Line 1667 
1667      goto repeat;      goto repeat;
1668    }    }
1669    
1670    if(dec->frames == 0 && coding_type != I_VOP) {    if((dec->frames == 0 && coding_type != I_VOP) || (!dec->width || !dec->height)) {
1671      /* 1st frame is not an i-vop */      /* 1st frame is not an i-vop */
1672      goto repeat;      goto repeat;
1673    }    }

Legend:
Removed from v.2177  
changed lines
  Added in v.2197

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4