[FFmpeg-cvslog] avframe: have av_frame_get_side_data take const AVFrame*

Vittorio Giovara git at videolan.org
Thu Aug 1 14:28:38 CEST 2013


ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Tue Jul 30 17:39:07 2013 +0200| [3c8bff0740abb3785968823429e77bd41c65debf] | committer: Anton Khirnov

avframe: have av_frame_get_side_data take const AVFrame*

Signed-off-by: Anton Khirnov <anton at khirnov.net>

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

 libavutil/frame.c |    2 +-
 libavutil/frame.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavutil/frame.c b/libavutil/frame.c
index cf60eb3..098bbed 100644
--- a/libavutil/frame.c
+++ b/libavutil/frame.c
@@ -465,7 +465,7 @@ AVFrameSideData *av_frame_new_side_data(AVFrame *frame,
     return ret;
 }
 
-AVFrameSideData *av_frame_get_side_data(AVFrame *frame,
+AVFrameSideData *av_frame_get_side_data(const AVFrame *frame,
                                         enum AVFrameSideDataType type)
 {
     int i;
diff --git a/libavutil/frame.h b/libavutil/frame.h
index adc23b2..d71948d 100644
--- a/libavutil/frame.h
+++ b/libavutil/frame.h
@@ -485,7 +485,7 @@ AVFrameSideData *av_frame_new_side_data(AVFrame *frame,
  * @return a pointer to the side data of a given type on success, NULL if there
  * is no side data with such type in this frame.
  */
-AVFrameSideData *av_frame_get_side_data(AVFrame *frame,
+AVFrameSideData *av_frame_get_side_data(const AVFrame *frame,
                                         enum AVFrameSideDataType type);
 
 #endif /* AVUTIL_FRAME_H */



More information about the ffmpeg-cvslog mailing list