projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12c14cd
)
make av_find_best_stream() ignore streams marked with AV_DISPOSITION_*_IMPAIRED
author
Peter Ross
<pross@xvid.org>
Thu, 10 Feb 2011 06:25:40 +0000
(17:25 +1100)
committer
Janne Grunau
<janne-ffmpeg@jannau.net>
Thu, 10 Feb 2011 21:55:17 +0000
(22:55 +0100)
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
libavformat/utils.c
patch
|
blob
|
history
diff --git
a/libavformat/utils.c
b/libavformat/utils.c
index
c21b922
..
870a287
100644
(file)
--- a/
libavformat/utils.c
+++ b/
libavformat/utils.c
@@
-2516,6
+2516,8
@@
int av_find_best_stream(AVFormatContext *ic,
continue;
if (wanted_stream_nb >= 0 && stream_number++ != wanted_stream_nb)
continue;
+ 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);
if (!decoder) {