[FFmpeg-cvslog] avcodec: Add avpriv_codec_get_cap_skip_frame_fill_param()

Michael Niedermayer git at videolan.org
Sat Aug 13 16:30:02 EEST 2016


ffmpeg | branch: release/3.0 | Michael Niedermayer <michael at niedermayer.cc> | Wed Apr 20 19:19:25 2016 +0200| [19b86db2b32fcd017c6f4f08508f7fb3183f47b4] | committer: 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: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=19b86db2b32fcd017c6f4f08508f7fb3183f47b4
---

 libavcodec/internal.h | 2 ++
 libavcodec/utils.c    | 4 ++++
 2 files changed, 6 insertions(+)

diff --git a/libavcodec/internal.h b/libavcodec/internal.h
index 24d320c..6c0efec 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 fedbc47..5d51900 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));



More information about the ffmpeg-cvslog mailing list