[FFmpeg-cvslog] avfilter.h, buffer.c: use const src pointer in avfilter_copy_buffer_ref_props

Roman Fietze git at videolan.org
Thu Apr 3 14:22:39 CEST 2014


ffmpeg | branch: master | Roman Fietze <roman.fietze at telemotive.de> | Thu Apr  3 12:46:12 2014 +0200| [f5d718ac7e201551d16ea2a1d3f8ce202d91cf67] | committer: Michael Niedermayer

avfilter.h, buffer.c: use const src pointer in avfilter_copy_buffer_ref_props

Signed-off-by: Roman Fietze <roman.fietze at telemotive.de>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f5d718ac7e201551d16ea2a1d3f8ce202d91cf67
---

 libavfilter/avfilter.h |    2 +-
 libavfilter/buffer.c   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h
index 086e9fe..9a6b277 100644
--- a/libavfilter/avfilter.h
+++ b/libavfilter/avfilter.h
@@ -199,7 +199,7 @@ typedef struct AVFilterBufferRef {
  * Copy properties of src to dst, without copying the actual data
  */
 attribute_deprecated
-void avfilter_copy_buffer_ref_props(AVFilterBufferRef *dst, AVFilterBufferRef *src);
+void avfilter_copy_buffer_ref_props(AVFilterBufferRef *dst, const AVFilterBufferRef *src);
 
 /**
  * Add a new reference to a buffer.
diff --git a/libavfilter/buffer.c b/libavfilter/buffer.c
index a626184..885e9ca 100644
--- a/libavfilter/buffer.c
+++ b/libavfilter/buffer.c
@@ -150,7 +150,7 @@ int avfilter_copy_frame_props(AVFilterBufferRef *dst, const AVFrame *src)
     return 0;
 }
 
-void avfilter_copy_buffer_ref_props(AVFilterBufferRef *dst, AVFilterBufferRef *src)
+void avfilter_copy_buffer_ref_props(AVFilterBufferRef *dst, const AVFilterBufferRef *src)
 {
     // copy common properties
     dst->pts             = src->pts;



More information about the ffmpeg-cvslog mailing list