Commit 19b86db2 authored by Michael Niedermayer's avatar Michael Niedermayer

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: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 694d37eb
...@@ -293,6 +293,8 @@ const uint8_t *avpriv_find_start_code(const uint8_t *p, ...@@ -293,6 +293,8 @@ const uint8_t *avpriv_find_start_code(const uint8_t *p,
const uint8_t *end, const uint8_t *end,
uint32_t *state); 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 * Check that the provided frame dimensions are valid and set them on the codec
* context. * context.
......
...@@ -1126,6 +1126,10 @@ int av_codec_get_max_lowres(const AVCodec *codec) ...@@ -1126,6 +1126,10 @@ int av_codec_get_max_lowres(const AVCodec *codec)
return codec->max_lowres; 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) static void get_subtitle_defaults(AVSubtitle *sub)
{ {
memset(sub, 0, sizeof(*sub)); memset(sub, 0, sizeof(*sub));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment