diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-10-27 09:24:22 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-10-31 20:14:14 +0100 |
commit | 7644f5a80787c9b608b82873604805d7e38a6a18 (patch) | |
tree | 13ab56556d67d4e4fce64ffa19c6f1e45cf2fed3 /libavcodec/internal.h | |
parent | 28096e0a806e57376541e6222d315619906e3c55 (diff) | |
download | ffmpeg-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.h | 6 |
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 */ |