summaryrefslogtreecommitdiff
path: root/libavutil/frame.c
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2013-10-26 16:43:07 +0200
committerAnton Khirnov <anton@khirnov.net>2013-10-27 21:32:37 +0100
commit529a9893d769f381b72785c500662be2020da5fe (patch)
treed57f018ef4512bb9b813d8b730a72d0b87b033ea /libavutil/frame.c
parentfc06ee6ee377cc3b512dff8f02057e26311bc4da (diff)
avframe: mark source frame const in _ref and _clone
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavutil/frame.c')
-rw-r--r--libavutil/frame.c4
1 files changed, 2 insertions, 2 deletions
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();