Mercurial > libavcodec.hg
comparison rv10.c @ 925:7fccaa0d699d libavcodec
AVVideoFrame -> AVFrame
author | michaelni |
---|---|
date | Mon, 09 Dec 2002 12:03:43 +0000 |
parents | 22ee74da2cd3 |
children | 1f9afd8b9131 |
comparison
equal
deleted
inserted
replaced
924:3814e9115672 | 925:7fccaa0d699d |
---|---|
470 void *data, int *data_size, | 470 void *data, int *data_size, |
471 UINT8 *buf, int buf_size) | 471 UINT8 *buf, int buf_size) |
472 { | 472 { |
473 MpegEncContext *s = avctx->priv_data; | 473 MpegEncContext *s = avctx->priv_data; |
474 int i; | 474 int i; |
475 AVVideoFrame *pict = data; | 475 AVFrame *pict = data; |
476 | 476 |
477 #ifdef DEBUG | 477 #ifdef DEBUG |
478 printf("*****frame %d size=%d\n", avctx->frame_number, buf_size); | 478 printf("*****frame %d size=%d\n", avctx->frame_number, buf_size); |
479 #endif | 479 #endif |
480 | 480 |
503 } | 503 } |
504 | 504 |
505 if(s->mb_y>=s->mb_height){ | 505 if(s->mb_y>=s->mb_height){ |
506 MPV_frame_end(s); | 506 MPV_frame_end(s); |
507 | 507 |
508 *pict= *(AVVideoFrame*)&s->current_picture; | 508 *pict= *(AVFrame*)&s->current_picture; |
509 | 509 |
510 *data_size = sizeof(AVVideoFrame); | 510 *data_size = sizeof(AVFrame); |
511 }else{ | 511 }else{ |
512 *data_size = 0; | 512 *data_size = 0; |
513 } | 513 } |
514 | 514 |
515 return buf_size; | 515 return buf_size; |