diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2013-10-26 16:43:07 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-10-27 21:32:37 +0100 |
commit | 529a9893d769f381b72785c500662be2020da5fe (patch) | |
tree | d57f018ef4512bb9b813d8b730a72d0b87b033ea /libavutil/frame.h | |
parent | fc06ee6ee377cc3b512dff8f02057e26311bc4da (diff) | |
download | ffmpeg-529a9893d769f381b72785c500662be2020da5fe.tar.gz |
avframe: mark source frame const in _ref and _clone
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavutil/frame.h')
-rw-r--r-- | libavutil/frame.h | 4 |
1 files changed, 2 insertions, 2 deletions
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. |