[FFmpeg-cvslog] buffersrc: add const to the AVFrame* argument of av_buffersrc_write_frame()
Anton Khirnov
git at videolan.org
Tue Sep 18 14:52:48 CEST 2012
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Sat Aug 18 08:58:09 2012 +0200| [4e48aa86563279bf833b3ebcc2eaa1ff97189d91] | committer: Anton Khirnov
buffersrc: add const to the AVFrame* argument of av_buffersrc_write_frame()
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4e48aa86563279bf833b3ebcc2eaa1ff97189d91
---
libavfilter/buffersrc.c | 2 +-
libavfilter/buffersrc.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c
index e91d2e4..ce897f5 100644
--- a/libavfilter/buffersrc.c
+++ b/libavfilter/buffersrc.c
@@ -70,7 +70,7 @@ typedef struct {
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;
AVFilterBufferRef *buf;
diff --git a/libavfilter/buffersrc.h b/libavfilter/buffersrc.h
index ca82a75..452c691 100644
--- a/libavfilter/buffersrc.h
+++ b/libavfilter/buffersrc.h
@@ -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
* 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 */
More information about the ffmpeg-cvslog
mailing list