mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-06 09:22:36 +08:00
avformat/avformat, utils: Make av_find_best_stream const-correct
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:

committed by
James Almer

parent
626535f6a1
commit
46dac8cf3d
@@ -4200,7 +4200,7 @@ AVProgram *av_find_program_from_stream(AVFormatContext *ic, AVProgram *last, int
|
||||
|
||||
int av_find_best_stream(AVFormatContext *ic, enum AVMediaType type,
|
||||
int wanted_stream_nb, int related_stream,
|
||||
AVCodec **decoder_ret, int flags)
|
||||
const AVCodec **decoder_ret, int flags)
|
||||
{
|
||||
int i, nb_streams = ic->nb_streams;
|
||||
int ret = AVERROR_STREAM_NOT_FOUND;
|
||||
@@ -4260,7 +4260,7 @@ int av_find_best_stream(AVFormatContext *ic, enum AVMediaType type,
|
||||
}
|
||||
}
|
||||
if (decoder_ret)
|
||||
*decoder_ret = (AVCodec*)best_decoder;
|
||||
*decoder_ret = best_decoder;
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user