diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-03-02 17:00:53 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-03-04 21:08:52 +0100 |
commit | 44fe77b350fd812c84cd866b7d03e436acc3bab2 (patch) | |
tree | 1774319dabdecad58f2244428fb1866f12ae919c /libavcodec/avcodec.h | |
parent | 02beb9826b29166b5d7c9b306ac1648abb449be0 (diff) | |
download | ffmpeg-44fe77b350fd812c84cd866b7d03e436acc3bab2.tar.gz |
lavc: make codec_is_decoder/encoder() public.
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r-- | libavcodec/avcodec.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 491fb16a70..a99dcbd553 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -4297,4 +4297,14 @@ const AVClass *avcodec_get_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 */ |