[FFmpeg-cvslog] r17692 - trunk/ffplay.c

stefano subversion
Sun Mar 1 18:02:21 CET 2009


Author: stefano
Date: Sun Mar  1 18:02:21 2009
New Revision: 17692

Log:
Simplify the logic for the subtitle stream selection.

Modified:
   trunk/ffplay.c

Modified: trunk/ffplay.c
==============================================================================
--- trunk/ffplay.c	Sun Mar  1 17:58:59 2009	(r17691)
+++ trunk/ffplay.c	Sun Mar  1 18:02:21 2009	(r17692)
@@ -1982,8 +1982,7 @@ static int decode_thread(void *arg)
                 video_index = i;
             break;
         case CODEC_TYPE_SUBTITLE:
-            if (wanted_subtitle_stream >= 0 && !video_disable &&
-                    (subtitle_index < 0 || wanted_subtitle_stream-- >= 0))
+            if (wanted_subtitle_stream-- >= 0 && !video_disable)
                 subtitle_index = i;
             break;
         default:




More information about the ffmpeg-cvslog mailing list