[FFmpeg-devel] [PATCH 4/5] make av_find_best_stream() ignore streams marked with AV_DISPOSITION_IMPAIRED
Peter Ross
pross
Sat Feb 5 02:11:30 CET 2011
---
libavformat/utils.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/libavformat/utils.c b/libavformat/utils.c
index d12bbc2..3a9ee2f 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -2510,6 +2510,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_IMPAIRED))
+ continue;
if (decoder_ret) {
decoder = avcodec_find_decoder(ic->streams[i]->codec->codec_id);
if (!decoder) {
--
1.7.1
-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20110205/eef17f8a/attachment.pgp>
More information about the ffmpeg-devel
mailing list