Commit 4e48aa86 authored by Anton Khirnov's avatar Anton Khirnov

buffersrc: add const to the AVFrame* argument of av_buffersrc_write_frame()

parent 1fce361d
...@@ -70,7 +70,7 @@ typedef struct { ...@@ -70,7 +70,7 @@ typedef struct {
return AVERROR(EINVAL);\ return AVERROR(EINVAL);\
} }
int av_buffersrc_write_frame(AVFilterContext *buffer_filter, AVFrame *frame) int av_buffersrc_write_frame(AVFilterContext *buffer_filter, const AVFrame *frame)
{ {
BufferSourceContext *c = buffer_filter->priv; BufferSourceContext *c = buffer_filter->priv;
AVFilterBufferRef *buf; AVFilterBufferRef *buf;
......
...@@ -45,6 +45,6 @@ int av_buffersrc_buffer(AVFilterContext *s, AVFilterBufferRef *buf); ...@@ -45,6 +45,6 @@ int av_buffersrc_buffer(AVFilterContext *s, AVFilterBufferRef *buf);
* @warning frame data will be memcpy()ed, which may be a big performance * @warning frame data will be memcpy()ed, which may be a big performance
* hit. Use av_buffersrc_buffer() to avoid copying the data. * hit. Use av_buffersrc_buffer() to avoid copying the data.
*/ */
int av_buffersrc_write_frame(AVFilterContext *s, AVFrame *frame); int av_buffersrc_write_frame(AVFilterContext *s, const AVFrame *frame);
#endif /* AVFILTER_BUFFERSRC_H */ #endif /* AVFILTER_BUFFERSRC_H */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment