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.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavutil/frame.h') diff --git a/libavutil/frame.h b/libavutil/frame.h index b0676e7f58..bbff3d11dc 100644 --- a/libavutil/frame.h +++ b/libavutil/frame.h @@ -384,7 +384,7 @@ void av_frame_free(AVFrame **frame); * * @return 0 on success, a negative AVERROR on error */ -int av_frame_ref(AVFrame *dst, AVFrame *src); +int av_frame_ref(AVFrame *dst, const AVFrame *src); /** * Create a new frame that references the same data as src. @@ -393,7 +393,7 @@ int av_frame_ref(AVFrame *dst, AVFrame *src); * * @return newly created AVFrame on success, NULL on error. */ -AVFrame *av_frame_clone(AVFrame *src); +AVFrame *av_frame_clone(const AVFrame *src); /** * Unreference all the buffers referenced by frame and reset the frame fields. -- cgit v1.2.3