Merge remote-tracking branch 'qatar/master'
* qatar/master: (27 commits) cmdutils: use new avcodec_is_decoder/encoder() functions. lavc: make codec_is_decoder/encoder() public. lavc: deprecate AVCodecContext.sub_id. libcdio: add a forgotten AVClass to the private context. swscale: remove "cpu flags" from -sws_flags description. proresenc: give user a possibility to alter some encoding parameters vorbisenc: add output buffer overwrite protection libopencore-amrnbenc: fix end-of-stream handling ra144enc: fix end-of-stream handling nellymoserenc: zero any leftover packet bytes nellymoserenc: use proper MDCT overlap delay qpeg: Use bytestream2 functions to prevent buffer overreads. swscale: make %rep unconditional. vp8: convert simple loopfilter x86 assembly to use named arguments. vp8: convert idct x86 assembly to use named arguments. vp8: convert mc x86 assembly to use named arguments. vp8: convert loopfilter x86 assembly to use cpuflags(). vp8: convert idct/mc x86 assembly to use cpuflags(). swscale: remove now unnecessary hack. x86inc: don't "bake" stack_offset in named arguments. ... Conflicts: cmdutils.c doc/APIchanges libavcodec/mpeg12.c libavcodec/options.c libavcodec/qpeg.c libavcodec/utils.c libavcodec/version.h libavdevice/libcdio.c tests/lavf-regression.sh Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -1280,15 +1280,12 @@ typedef struct AVCodecContext {
|
||||
*/
|
||||
unsigned int stream_codec_tag;
|
||||
|
||||
#if FF_API_SUB_ID
|
||||
/**
|
||||
* Some codecs need additional format info. It is stored here.
|
||||
* If any muxer uses this then ALL demuxers/parsers AND encoders for the
|
||||
* specific codec MUST set it correctly otherwise stream copy breaks.
|
||||
* In general use of this field by muxers is not recommended.
|
||||
* - encoding: Set by libavcodec.
|
||||
* - decoding: Set by libavcodec. (FIXME: Is this OK?)
|
||||
* @deprecated this field is unused
|
||||
*/
|
||||
int sub_id;
|
||||
attribute_deprecated int sub_id;
|
||||
#endif
|
||||
|
||||
void *priv_data;
|
||||
|
||||
@@ -4504,4 +4501,14 @@ const AVClass *avcodec_get_frame_class(void);
|
||||
*/
|
||||
int avcodec_is_open(AVCodecContext *s);
|
||||
|
||||
/**
|
||||
* @return a non-zero number if codec is an encoder, zero otherwise
|
||||
*/
|
||||
int av_codec_is_encoder(AVCodec *codec);
|
||||
|
||||
/**
|
||||
* @return a non-zero number if codec is a decoder, zero otherwise
|
||||
*/
|
||||
int av_codec_is_decoder(AVCodec *codec);
|
||||
|
||||
#endif /* AVCODEC_AVCODEC_H */
|
||||
|
Reference in New Issue
Block a user