summaryrefslogtreecommitdiff
path: root/libavcodec/apiexample.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2002-12-09 12:03:43 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-12-09 12:03:43 +0000
commit492cd3a9203779380cea24f23190b92af2b48007 (patch)
tree4a673a16c3e2c0ac4dc28a10ae2d5f6b6a32fda4 /libavcodec/apiexample.c
parentf694168d524d1c84f5f20f4260fcab1f4d8c11d7 (diff)
AVVideoFrame -> AVFrame
Originally committed as revision 1327 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/apiexample.c')
-rw-r--r--libavcodec/apiexample.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/apiexample.c b/libavcodec/apiexample.c
index b97b09fb87..0f730d4f54 100644
--- a/libavcodec/apiexample.c
+++ b/libavcodec/apiexample.c
@@ -164,7 +164,7 @@ void video_encode_example(const char *filename)
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 @@ void video_encode_example(const char *filename)
}
c= avcodec_alloc_context();
- picture= avcodec_alloc_picture();
+ picture= avcodec_alloc_frame();
/* put sample parameters */
c->bit_rate = 400000;
@@ -278,7 +278,7 @@ void video_decode_example(const char *outfilename, const char *filename)
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 @@ void video_decode_example(const char *outfilename, const char *filename)
}
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 */