[FFmpeg-cvslog] r26115 - trunk/ffplay.c
cigaes
subversion
Tue Dec 28 10:52:32 CET 2010
Author: cigaes
Date: Tue Dec 28 10:52:31 2010
New Revision: 26115
Log:
Fix ffplay -an/-vn options that were swapped by r26105.
Modified:
trunk/ffplay.c
Modified: trunk/ffplay.c
==============================================================================
--- trunk/ffplay.c Tue Dec 28 10:03:38 2010 (r26114)
+++ trunk/ffplay.c Tue Dec 28 10:52:31 2010 (r26115)
@@ -2466,16 +2466,17 @@ static int decode_thread(void *arg)
for (i = 0; i < ic->nb_streams; i++)
ic->streams[i]->discard = AVDISCARD_ALL;
- if (!audio_disable)
+ if (!video_disable)
st_index[AVMEDIA_TYPE_VIDEO] =
av_find_best_stream(ic, AVMEDIA_TYPE_VIDEO,
wanted_stream[AVMEDIA_TYPE_VIDEO], -1, NULL, 0);
- if (!video_disable) {
+ if (!audio_disable)
st_index[AVMEDIA_TYPE_AUDIO] =
av_find_best_stream(ic, AVMEDIA_TYPE_AUDIO,
wanted_stream[AVMEDIA_TYPE_AUDIO],
st_index[AVMEDIA_TYPE_VIDEO],
NULL, 0);
+ if (!video_disable)
st_index[AVMEDIA_TYPE_SUBTITLE] =
av_find_best_stream(ic, AVMEDIA_TYPE_SUBTITLE,
wanted_stream[AVMEDIA_TYPE_SUBTITLE],
@@ -2483,7 +2484,6 @@ static int decode_thread(void *arg)
st_index[AVMEDIA_TYPE_AUDIO] :
st_index[AVMEDIA_TYPE_VIDEO]),
NULL, 0);
- }
if (show_status) {
dump_format(ic, 0, is->filename, 0);
}
More information about the ffmpeg-cvslog
mailing list