[FFmpeg-devel] [PATCH 2/2] lavf: mark stream as const pointer in av_stream_get_side_data()
Clément Bœsch
u at pkh.me
Mon Jun 27 12:10:53 CEST 2016
From: Clément Bœsch <clement at stupeflix.com>
TODO: bump lavf minor
XXX: should i add a FF_API_NOCONST_GET_SIDE_DATA?
---
libavformat/avformat.h | 2 +-
libavformat/utils.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index 876f1e3..43b4a02 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -2051,7 +2051,7 @@ uint8_t *av_stream_new_side_data(AVStream *stream,
* @param size pointer for side information size to store (optional)
* @return pointer to data if present or NULL otherwise
*/
-uint8_t *av_stream_get_side_data(AVStream *stream,
+uint8_t *av_stream_get_side_data(const AVStream *stream,
enum AVPacketSideDataType type, int *size);
AVProgram *av_new_program(AVFormatContext *s, int id);
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 4d53f8f..093fcf9 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -4936,7 +4936,7 @@ int ff_generate_avci_extradata(AVStream *st)
return 0;
}
-uint8_t *av_stream_get_side_data(AVStream *st, enum AVPacketSideDataType type,
+uint8_t *av_stream_get_side_data(const AVStream *st, enum AVPacketSideDataType type,
int *size)
{
int i;
--
2.9.0
More information about the ffmpeg-devel
mailing list