[FFmpeg-cvslog] Fix av_find_best_stream when decoder_ret is given and using a related stream
Marton Balint
git
Fri Mar 11 14:56:17 CET 2011
ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Sun Feb 20 01:18:49 2011 +0100| [fa14610df5e21fd562922a5622daf42f746df978] | committer: Michael Niedermayer
Fix av_find_best_stream when decoder_ret is given and using a related stream
Yet another fix for the code originally designed for use without related_stream.
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fa14610df5e21fd562922a5622daf42f746df978
---
libavformat/utils.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavformat/utils.c b/libavformat/utils.c
index c38c9ca..b5e052f 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -2520,7 +2520,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;
More information about the ffmpeg-cvslog
mailing list