summaryrefslogtreecommitdiffstats
path: root/libavcodec/avpicture.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2015-11-26 16:10:54 +0100
committerLuca Barbato <lu_zero@gentoo.org>2015-12-05 13:12:27 +0100
commitf7edcac040f73635fc1127489c9bb29ca8b43532 (patch)
tree8c0358b0317466b27a97fc1c0c6b6f27a6b56194 /libavcodec/avpicture.c
parentb805482b1fba1d82fbe47023a24c9261f18979b6 (diff)
downloadffmpeg-streaming-f7edcac040f73635fc1127489c9bb29ca8b43532.zip
ffmpeg-streaming-f7edcac040f73635fc1127489c9bb29ca8b43532.tar.gz
avpicture: Suppress warning from deprecated code
Diffstat (limited to 'libavcodec/avpicture.c')
-rw-r--r--libavcodec/avpicture.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/avpicture.c b/libavcodec/avpicture.c
index eaa5c26..786d740 100644
--- a/libavcodec/avpicture.c
+++ b/libavcodec/avpicture.c
@@ -29,9 +29,11 @@
#include "libavutil/common.h"
#include "libavutil/pixdesc.h"
#include "libavutil/imgutils.h"
+#include "libavutil/internal.h"
#include "libavutil/colorspace.h"
#if FF_API_AVPICTURE
+FF_DISABLE_DEPRECATION_WARNINGS
int avpicture_fill(AVPicture *picture, uint8_t *ptr,
enum AVPixelFormat pix_fmt, int width, int height)
{
@@ -77,4 +79,5 @@ void av_picture_copy(AVPicture *dst, const AVPicture *src,
av_image_copy(dst->data, dst->linesize, src->data,
src->linesize, pix_fmt, width, height);
}
+FF_ENABLE_DEPRECATION_WARNINGS
#endif /* FF_API_AVPICTURE */
OpenPOWER on IntegriCloud