comparison asv1.c @ 2453:f67b63ed036d libavcodec

avoid buf_size == 0 checks in every decoder
author michael
date Sun, 23 Jan 2005 18:09:06 +0000
parents 1ee03f2a6cd5
children 91e094c9dcdc
comparison
equal deleted inserted replaced
2452:73a66a4a6ab4 2453:f67b63ed036d
407 ASV1Context * const a = avctx->priv_data; 407 ASV1Context * const a = avctx->priv_data;
408 AVFrame *picture = data; 408 AVFrame *picture = data;
409 AVFrame * const p= (AVFrame*)&a->picture; 409 AVFrame * const p= (AVFrame*)&a->picture;
410 int mb_x, mb_y; 410 int mb_x, mb_y;
411 411
412 /* special case for last picture */
413 if (buf_size == 0) {
414 return 0;
415 }
416
417 if(p->data[0]) 412 if(p->data[0])
418 avctx->release_buffer(avctx, p); 413 avctx->release_buffer(avctx, p);
419 414
420 p->reference= 0; 415 p->reference= 0;
421 if(avctx->get_buffer(avctx, p) < 0){ 416 if(avctx->get_buffer(avctx, p) < 0){