Mercurial > libavcodec.hg
comparison utils.c @ 2764:2b37bcabe608 libavcodec
spelling fixes
patch by Peter Robinson pbrobinson @ at @ gmail . dot . com and myself
| author | diego |
|---|---|
| date | Fri, 17 Jun 2005 15:02:53 +0000 |
| parents | d8874c8749ec |
| children | f191093dc8fe |
comparison
equal
deleted
inserted
replaced
| 2763:01ed2c3b8f08 | 2764:2b37bcabe608 |
|---|---|
| 581 if(avcodec_check_dimensions(avctx,avctx->width,avctx->height)) | 581 if(avcodec_check_dimensions(avctx,avctx->width,avctx->height)) |
| 582 return -1; | 582 return -1; |
| 583 if((avctx->codec->capabilities & CODEC_CAP_DELAY) || pict){ | 583 if((avctx->codec->capabilities & CODEC_CAP_DELAY) || pict){ |
| 584 int ret = avctx->codec->encode(avctx, buf, buf_size, (void *)pict); | 584 int ret = avctx->codec->encode(avctx, buf, buf_size, (void *)pict); |
| 585 avctx->frame_number++; | 585 avctx->frame_number++; |
| 586 emms_c(); //needed to avoid a emms_c() call before every return; | 586 emms_c(); //needed to avoid an emms_c() call before every return; |
| 587 | 587 |
| 588 return ret; | 588 return ret; |
| 589 }else | 589 }else |
| 590 return 0; | 590 return 0; |
| 591 } | 591 } |
| 619 return -1; | 619 return -1; |
| 620 if((avctx->codec->capabilities & CODEC_CAP_DELAY) || buf_size){ | 620 if((avctx->codec->capabilities & CODEC_CAP_DELAY) || buf_size){ |
| 621 ret = avctx->codec->decode(avctx, picture, got_picture_ptr, | 621 ret = avctx->codec->decode(avctx, picture, got_picture_ptr, |
| 622 buf, buf_size); | 622 buf, buf_size); |
| 623 | 623 |
| 624 emms_c(); //needed to avoid a emms_c() call before every return; | 624 emms_c(); //needed to avoid an emms_c() call before every return; |
| 625 | 625 |
| 626 if (*got_picture_ptr) | 626 if (*got_picture_ptr) |
| 627 avctx->frame_number++; | 627 avctx->frame_number++; |
| 628 }else | 628 }else |
| 629 ret= 0; | 629 ret= 0; |
