~ppsspp/ppsspp/ffmpeg

« back to all changes in this revision

Viewing changes to libavcodec/options.c

  • Committer: Henrik Rydgård
  • Date: 2014-01-03 10:44:32 UTC
  • Revision ID: git-v1:87c6c126784b1718bfa448ecf2e6a9fef781eb4e
Update our ffmpeg snapshot to a clone of the official repository.

This is because Maxim's at3plus support has been officially merged!

Show diffs side-by-side

added added

removed removed

Lines of Context:
86
86
    .get_category            = get_category,
87
87
};
88
88
 
89
 
#if FF_API_ALLOC_CONTEXT
90
 
void avcodec_get_context_defaults2(AVCodecContext *s, enum AVMediaType codec_type){
91
 
    AVCodec c= {0};
92
 
    c.type= codec_type;
93
 
    avcodec_get_context_defaults3(s, &c);
94
 
}
95
 
#endif
96
 
 
97
89
int avcodec_get_context_defaults3(AVCodecContext *s, const AVCodec *codec)
98
90
{
99
91
    int flags=0;
162
154
    return avctx;
163
155
}
164
156
 
165
 
#if FF_API_ALLOC_CONTEXT
166
 
AVCodecContext *avcodec_alloc_context2(enum AVMediaType codec_type){
167
 
    AVCodecContext *avctx= av_malloc(sizeof(AVCodecContext));
168
 
 
169
 
    if(avctx==NULL) return NULL;
170
 
 
171
 
    avcodec_get_context_defaults2(avctx, codec_type);
172
 
 
173
 
    return avctx;
174
 
}
175
 
 
176
 
void avcodec_get_context_defaults(AVCodecContext *s){
177
 
    avcodec_get_context_defaults2(s, AVMEDIA_TYPE_UNKNOWN);
178
 
}
179
 
 
180
 
AVCodecContext *avcodec_alloc_context(void){
181
 
    return avcodec_alloc_context2(AVMEDIA_TYPE_UNKNOWN);
182
 
}
183
 
#endif
184
 
 
185
157
int avcodec_copy_context(AVCodecContext *dest, const AVCodecContext *src)
186
158
{
187
159
    if (avcodec_is_open(dest)) { // check that the dest context is uninitialized
201
173
    dest->codec           = NULL;
202
174
    dest->slice_offset    = NULL;
203
175
    dest->hwaccel         = NULL;
204
 
    dest->thread_opaque   = NULL;
205
176
    dest->internal        = NULL;
206
177
 
207
178
    /* reallocate values that should be allocated separately */