diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-11-09 10:05:22 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-11-16 12:44:20 +0100 |
commit | 5b9c3b4505206143d85398c1410949319fa1180f (patch) | |
tree | e947d3ad720f3442712d5bf8d59e073243b75f04 /libavcodec/api-example.c | |
parent | 2ff302cb6ba1f159905888026c8a1d7dd8319acf (diff) | |
download | ffmpeg-5b9c3b4505206143d85398c1410949319fa1180f.tar.gz |
Replace all instances of avcodec_alloc_frame() with av_frame_alloc().
Diffstat (limited to 'libavcodec/api-example.c')
-rw-r--r-- | libavcodec/api-example.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/api-example.c b/libavcodec/api-example.c index 25b7cfe2a6..54a1ecaa3c 100644 --- a/libavcodec/api-example.c +++ b/libavcodec/api-example.c @@ -155,7 +155,7 @@ static void audio_encode_example(const char *filename) } /* frame containing input raw audio */ - frame = avcodec_alloc_frame(); + frame = av_frame_alloc(); if (!frame) { fprintf(stderr, "could not allocate audio frame\n"); exit(1); @@ -268,7 +268,7 @@ static void audio_decode_example(const char *outfilename, const char *filename) int got_frame = 0; if (!decoded_frame) { - if (!(decoded_frame = avcodec_alloc_frame())) { + if (!(decoded_frame = av_frame_alloc())) { fprintf(stderr, "out of memory\n"); exit(1); } @@ -334,7 +334,7 @@ static void video_encode_example(const char *filename) } c = avcodec_alloc_context3(codec); - picture= avcodec_alloc_frame(); + picture = av_frame_alloc(); /* put sample parameters */ c->bit_rate = 400000; @@ -479,7 +479,7 @@ static void video_decode_example(const char *outfilename, const char *filename) } c = avcodec_alloc_context3(codec); - picture= avcodec_alloc_frame(); + picture = av_frame_alloc(); if(codec->capabilities&CODEC_CAP_TRUNCATED) c->flags|= CODEC_FLAG_TRUNCATED; /* we do not send complete frames */ |