diff --git a/libavutil/frame.c b/libavutil/frame.c index bac6c63980..a06d525606 100644 --- a/libavutil/frame.c +++ b/libavutil/frame.c @@ -562,7 +562,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 8cb3000aaa..ac4057bc6f 100644 --- a/libavutil/frame.h +++ b/libavutil/frame.h @@ -644,7 +644,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 */