On 05/12/2011 01:56 AM, Anton Khirnov wrote: > From: Marton Balint <[email protected]> > > Yet another fix for the code originally designed for use without > related_stream. > > Signed-off-by: Michael Niedermayer <[email protected]> > Signed-off-by: Anton Khirnov <[email protected]> > --- > libavformat/utils.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/libavformat/utils.c b/libavformat/utils.c > index 7959102..830e5d0 100644 > --- a/libavformat/utils.c > +++ b/libavformat/utils.c > @@ -2484,7 +2484,7 @@ int av_find_best_stream(AVFormatContext *ic, > if (st->disposition & > (AV_DISPOSITION_HEARING_IMPAIRED|AV_DISPOSITION_VISUAL_IMPAIRED)) > continue; > if (decoder_ret) { > - decoder = avcodec_find_decoder(ic->streams[i]->codec->codec_id); > + decoder = avcodec_find_decoder(st->codec->codec_id); > if (!decoder) { > if (ret < 0) > ret = AVERROR_DECODER_NOT_FOUND;
looks correct. -Justin _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
