aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/internal.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-10-27 09:24:22 +0100
committerAnton Khirnov <anton@khirnov.net>2013-10-31 20:14:14 +0100
commit7644f5a80787c9b608b82873604805d7e38a6a18 (patch)
tree13ab56556d67d4e4fce64ffa19c6f1e45cf2fed3 /libavcodec/internal.h
parent28096e0a806e57376541e6222d315619906e3c55 (diff)
downloadffmpeg-7644f5a80787c9b608b82873604805d7e38a6a18.tar.gz
lavc: replace avcodec_set_dimensions with ff_set_dimensions
avcodec_set_dimensions() is supposed to be an internal utility function, there is no reason whatsoever for it to be public. Therefore deprecate it.
Diffstat (limited to 'libavcodec/internal.h')
-rw-r--r--libavcodec/internal.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/internal.h b/libavcodec/internal.h
index f57bedc8cf..21331377c3 100644
--- a/libavcodec/internal.h
+++ b/libavcodec/internal.h
@@ -166,4 +166,10 @@ const uint8_t *avpriv_find_start_code(const uint8_t *restrict p,
const uint8_t *end,
uint32_t *restrict state);
+/**
+ * Check that the provided frame dimensions are valid and set them on the codec
+ * context.
+ */
+int ff_set_dimensions(AVCodecContext *s, int width, int height);
+
#endif /* AVCODEC_INTERNAL_H */