aboutsummaryrefslogtreecommitdiff
path: root/libavcodec/options.c
diff options
context:
space:
mode:
authorStefano Sabatini2013-11-03 13:32:34 +0100
committerStefano Sabatini2013-11-03 17:58:44 +0100
commitd3397c3e829b2dc38fb7e4502784bf06fa38983e (patch)
tree6946ffd98781611288b1a073d9e90e8efb955518 /libavcodec/options.c
parent3d9fc5c6ad31634aaf0f1621ddaa0b83b49fcb36 (diff)
lavc: remove dead FF_API_ALLOC_CONTEXT API
Diffstat (limited to 'libavcodec/options.c')
-rw-r--r--libavcodec/options.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/libavcodec/options.c b/libavcodec/options.c
index 02fb89f5cb..266a7f1297 100644
--- a/libavcodec/options.c
+++ b/libavcodec/options.c
@@ -86,14 +86,6 @@ static const AVClass av_codec_context_class = {
.get_category = get_category,
};
-#if FF_API_ALLOC_CONTEXT
-void avcodec_get_context_defaults2(AVCodecContext *s, enum AVMediaType codec_type){
- AVCodec c= {0};
- c.type= codec_type;
- avcodec_get_context_defaults3(s, &c);
-}
-#endif
-
int avcodec_get_context_defaults3(AVCodecContext *s, const AVCodec *codec)
{
int flags=0;
@@ -162,26 +154,6 @@ AVCodecContext *avcodec_alloc_context3(const AVCodec *codec)
return avctx;
}
-#if FF_API_ALLOC_CONTEXT
-AVCodecContext *avcodec_alloc_context2(enum AVMediaType codec_type){
- AVCodecContext *avctx= av_malloc(sizeof(AVCodecContext));
-
- if(avctx==NULL) return NULL;
-
- avcodec_get_context_defaults2(avctx, codec_type);
-
- return avctx;
-}
-
-void avcodec_get_context_defaults(AVCodecContext *s){
- avcodec_get_context_defaults2(s, AVMEDIA_TYPE_UNKNOWN);
-}
-
-AVCodecContext *avcodec_alloc_context(void){
- return avcodec_alloc_context2(AVMEDIA_TYPE_UNKNOWN);
-}
-#endif
-
int avcodec_copy_context(AVCodecContext *dest, const AVCodecContext *src)
{
if (avcodec_is_open(dest)) { // check that the dest context is uninitialized