aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-04-20 19:19:25 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2016-08-13 13:08:57 +0200
commit19b86db2b32fcd017c6f4f08508f7fb3183f47b4 (patch)
tree61defd5bb98cb652ac7aef27b277c2a6e1162aae
parent694d37eb52ad296db8e038766750207ad61094e8 (diff)
downloadandroid_external_ffmpeg-19b86db2b32fcd017c6f4f08508f7fb3183f47b4.tar.gz
android_external_ffmpeg-19b86db2b32fcd017c6f4f08508f7fb3183f47b4.tar.bz2
android_external_ffmpeg-19b86db2b32fcd017c6f4f08508f7fb3183f47b4.zip
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>
-rw-r--r--libavcodec/internal.h2
-rw-r--r--libavcodec/utils.c4
2 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/internal.h b/libavcodec/internal.h
index 24d320c186..6c0efec8b1 100644
--- a/libavcodec/internal.h
+++ b/libavcodec/internal.h
@@ -293,6 +293,8 @@ const uint8_t *avpriv_find_start_code(const uint8_t *p,
const uint8_t *end,
uint32_t *state);
+int avpriv_codec_get_cap_skip_frame_fill_param(const AVCodec *codec);
+
/**
* Check that the provided frame dimensions are valid and set them on the codec
* context.
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));