From 529a9893d769f381b72785c500662be2020da5fe Mon Sep 17 00:00:00 2001 From: Vittorio Giovara Date: Sat, 26 Oct 2013 16:43:07 +0200 Subject: avframe: mark source frame const in _ref and _clone Signed-off-by: Anton Khirnov --- libavutil/frame.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavutil/frame.c') diff --git a/libavutil/frame.c b/libavutil/frame.c index 098bbed056..99bdd8a141 100644 --- a/libavutil/frame.c +++ b/libavutil/frame.c @@ -171,7 +171,7 @@ int av_frame_get_buffer(AVFrame *frame, int align) return AVERROR(EINVAL); } -int av_frame_ref(AVFrame *dst, AVFrame *src) +int av_frame_ref(AVFrame *dst, const AVFrame *src) { int i, ret = 0; @@ -257,7 +257,7 @@ fail: return ret; } -AVFrame *av_frame_clone(AVFrame *src) +AVFrame *av_frame_clone(const AVFrame *src) { AVFrame *ret = av_frame_alloc(); -- cgit v1.2.3