diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-04-20 19:19:25 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-08-13 13:08:57 +0200 |
commit | 19b86db2b32fcd017c6f4f08508f7fb3183f47b4 (patch) | |
tree | 61defd5bb98cb652ac7aef27b277c2a6e1162aae /libavcodec/utils.c | |
parent | 694d37eb52ad296db8e038766750207ad61094e8 (diff) | |
download | ffmpeg-19b86db2b32fcd017c6f4f08508f7fb3183f47b4.tar.gz |
avcodec: Add avpriv_codec_get_cap_skip_frame_fill_param()
With this the use of the caps_internal from libavformat can be avoided
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r-- | libavcodec/utils.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index fedbc476f7..5d5190002e 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -1126,6 +1126,10 @@ int av_codec_get_max_lowres(const AVCodec *codec) return codec->max_lowres; } +int avpriv_codec_get_cap_skip_frame_fill_param(const AVCodec *codec){ + return !!(codec->caps_internal & FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM); +} + static void get_subtitle_defaults(AVSubtitle *sub) { memset(sub, 0, sizeof(*sub)); |