diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-06-18 13:40:48 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-07-10 17:09:28 +0200 |
commit | 71a861cf4010ab835fab383a250f27903eb61a34 (patch) | |
tree | 5af1c2668613d3cd606b9803f34ac68c22152228 /libavcodec/api-example.c | |
parent | 18c007ba37b2c7dee5bd2f1a3eb3bfee9b6b3d26 (diff) | |
download | ffmpeg-71a861cf4010ab835fab383a250f27903eb61a34.tar.gz |
lavc: make avcodec_alloc_context3 officially public.
Deprecate avcodec_alloc_context/2.
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 1792d60d77..ec71b0d031 100644 --- a/libavcodec/api-example.c +++ b/libavcodec/api-example.c @@ -65,7 +65,7 @@ static void audio_encode_example(const char *filename) exit(1); } - c= avcodec_alloc_context(); + c = avcodec_alloc_context3(codec); /* put sample parameters */ c->bit_rate = 64000; @@ -135,7 +135,7 @@ static void audio_decode_example(const char *outfilename, const char *filename) exit(1); } - c= avcodec_alloc_context(); + c = avcodec_alloc_context3(codec); /* open it */ if (avcodec_open(c, codec) < 0) { @@ -216,7 +216,7 @@ static void video_encode_example(const char *filename) exit(1); } - c= avcodec_alloc_context(); + c = avcodec_alloc_context3(codec); picture= avcodec_alloc_frame(); /* put sample parameters */ @@ -347,7 +347,7 @@ static void video_decode_example(const char *outfilename, const char *filename) exit(1); } - c= avcodec_alloc_context(); + c = avcodec_alloc_context3(codec); picture= avcodec_alloc_frame(); if(codec->capabilities&CODEC_CAP_TRUNCATED) |