Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2011-02-20 03:18:49 +0300
committerMichael Niedermayer <michaelni@gmx.at>2011-03-11 15:03:43 +0300
commitfa14610df5e21fd562922a5622daf42f746df978 (patch)
tree9acfd4e5dd01207d58d18843144c3e127f302d3e /libavformat/utils.c
parent9f720d5f9a8d7ffd3d8152e06828b2cea663dcee (diff)
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@gmx.at>
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r--libavformat/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index c38c9ca729..b5e052fe6e 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;