comparison rv10.c @ 771:d4cc92144266 libavcodec

handle direct rendering buffer allocation failure
author michaelni
date Sun, 27 Oct 2002 00:02:23 +0000
parents 25d7fb7c89be
children eacc2dd8fd9d
comparison
equal deleted inserted replaced
770:d1770a34e4f6 771:d4cc92144266
414 fprintf(stderr, "COUNT ERROR\n"); 414 fprintf(stderr, "COUNT ERROR\n");
415 return -1; 415 return -1;
416 } 416 }
417 417
418 if (s->mb_x == 0 && s->mb_y == 0) { 418 if (s->mb_x == 0 && s->mb_y == 0) {
419 MPV_frame_start(s, avctx); 419 if(MPV_frame_start(s, avctx) < 0)
420 return -1;
420 } 421 }
421 422
422 #ifdef DEBUG 423 #ifdef DEBUG
423 printf("qscale=%d\n", s->qscale); 424 printf("qscale=%d\n", s->qscale);
424 #endif 425 #endif