mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avframe: mark source frame const in _ref and _clone
Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
parent
fc06ee6ee3
commit
529a9893d7
@ -171,7 +171,7 @@ int av_frame_get_buffer(AVFrame *frame, int align)
|
|||||||
return AVERROR(EINVAL);
|
return AVERROR(EINVAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
int av_frame_ref(AVFrame *dst, AVFrame *src)
|
int av_frame_ref(AVFrame *dst, const AVFrame *src)
|
||||||
{
|
{
|
||||||
int i, ret = 0;
|
int i, ret = 0;
|
||||||
|
|
||||||
@ -257,7 +257,7 @@ fail:
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
AVFrame *av_frame_clone(AVFrame *src)
|
AVFrame *av_frame_clone(const AVFrame *src)
|
||||||
{
|
{
|
||||||
AVFrame *ret = av_frame_alloc();
|
AVFrame *ret = av_frame_alloc();
|
||||||
|
|
||||||
|
@ -384,7 +384,7 @@ void av_frame_free(AVFrame **frame);
|
|||||||
*
|
*
|
||||||
* @return 0 on success, a negative AVERROR on error
|
* @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.
|
* 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.
|
* @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.
|
* Unreference all the buffers referenced by frame and reset the frame fields.
|
||||||
|
Loading…
Reference in New Issue
Block a user