Mercurial > libavcodec.hg
diff apiexample.c @ 925:7fccaa0d699d libavcodec
AVVideoFrame -> AVFrame
author | michaelni |
---|---|
date | Mon, 09 Dec 2002 12:03:43 +0000 |
parents | c87eee6da7b1 |
children | 890b9fb44e84 |
line wrap: on
line diff
--- a/apiexample.c Mon Dec 09 00:29:17 2002 +0000 +++ b/apiexample.c Mon Dec 09 12:03:43 2002 +0000 @@ -164,7 +164,7 @@ AVCodecContext *c= NULL; int i, out_size, size, x, y, outbuf_size; FILE *f; - AVVideoFrame *picture; + AVFrame *picture; UINT8 *outbuf, *picture_buf; printf("Video encoding\n"); @@ -177,7 +177,7 @@ } c= avcodec_alloc_context(); - picture= avcodec_alloc_picture(); + picture= avcodec_alloc_frame(); /* put sample parameters */ c->bit_rate = 400000; @@ -278,7 +278,7 @@ AVCodecContext *c= NULL; int frame, size, got_picture, len; FILE *f; - AVVideoFrame *picture; + AVFrame *picture; UINT8 inbuf[INBUF_SIZE], *inbuf_ptr; char buf[1024]; @@ -292,7 +292,7 @@ } c= avcodec_alloc_context(); - picture= avcodec_alloc_picture(); + picture= avcodec_alloc_frame(); if(codec->capabilities&CODEC_CAP_TRUNCATED) c->flags|= CODEC_FLAG_TRUNCATED; /* we dont send complete frames */