[FFmpeg-cvslog] imgconvert: Move AVPicture-related static function to the deprecated section
Vittorio Giovara
git at videolan.org
Wed Jan 27 21:04:46 CET 2016
ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Tue Jan 19 16:09:51 2016 -0500| [f7168d7016f7d1034ec90223fa91a90711704e11] | committer: Vittorio Giovara
imgconvert: Move AVPicture-related static function to the deprecated section
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f7168d7016f7d1034ec90223fa91a90711704e11
---
libavcodec/imgconvert.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c
index 489ce7a..6528c96 100644
--- a/libavcodec/imgconvert.c
+++ b/libavcodec/imgconvert.c
@@ -153,6 +153,8 @@ enum AVPixelFormat avcodec_find_best_pix_fmt2(enum AVPixelFormat *pix_fmt_list,
return dst_pix_fmt;
}
+#if FF_API_AVPICTURE
+FF_DISABLE_DEPRECATION_WARNINGS
/* return true if yuv planar */
static inline int is_yuv_planar(const AVPixFmtDescriptor *desc)
{
@@ -160,9 +162,6 @@ static inline int is_yuv_planar(const AVPixFmtDescriptor *desc)
(desc->flags & AV_PIX_FMT_FLAG_PLANAR));
}
-#if FF_API_AVPICTURE
-FF_DISABLE_DEPRECATION_WARNINGS
-
int av_picture_crop(AVPicture *dst, const AVPicture *src,
enum AVPixelFormat pix_fmt, int top_band, int left_band)
{
More information about the ffmpeg-cvslog
mailing list