diff options
Diffstat (limited to 'src/kitsource.c')
-rw-r--r-- | src/kitsource.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kitsource.c b/src/kitsource.c index 1a3bb00..f9ec228 100644 --- a/src/kitsource.c +++ b/src/kitsource.c @@ -170,13 +170,13 @@ int Kit_GetSourceStreamInfo(const Kit_Source *src, Kit_SourceStreamInfo *info, i assert(src != NULL); assert(info != NULL); - AVFormatContext *format_ctx = (AVFormatContext *)src->format_ctx; + const AVFormatContext *format_ctx = (AVFormatContext *)src->format_ctx; if(index < 0 || index >= format_ctx->nb_streams) { Kit_SetError("Invalid stream index"); return 1; } - AVStream *stream = format_ctx->streams[index]; + const AVStream *stream = format_ctx->streams[index]; enum AVMediaType codec_type; #if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(57, 48, 101) codec_type = stream->codec->codec_type; |