comparison utils.c @ 2028:141a9539e270 libavcodec

data_size = 0 cleanup
author michael
date Fri, 21 May 2004 14:37:16 +0000
parents 85e547a18d87
children 0817ee1f07e5
comparison
equal deleted inserted replaced
2027:3a78447c3b53 2028:141a9539e270
486 int *got_picture_ptr, 486 int *got_picture_ptr,
487 uint8_t *buf, int buf_size) 487 uint8_t *buf, int buf_size)
488 { 488 {
489 int ret; 489 int ret;
490 490
491 *got_picture_ptr= 0;
491 ret = avctx->codec->decode(avctx, picture, got_picture_ptr, 492 ret = avctx->codec->decode(avctx, picture, got_picture_ptr,
492 buf, buf_size); 493 buf, buf_size);
493 494
494 emms_c(); //needed to avoid a emms_c() call before every return; 495 emms_c(); //needed to avoid a emms_c() call before every return;
495 496
506 int *frame_size_ptr, 507 int *frame_size_ptr,
507 uint8_t *buf, int buf_size) 508 uint8_t *buf, int buf_size)
508 { 509 {
509 int ret; 510 int ret;
510 511
512 *frame_size_ptr= 0;
511 ret = avctx->codec->decode(avctx, samples, frame_size_ptr, 513 ret = avctx->codec->decode(avctx, samples, frame_size_ptr,
512 buf, buf_size); 514 buf, buf_size);
513 avctx->frame_number++; 515 avctx->frame_number++;
514 return ret; 516 return ret;
515 } 517 }