[Ffmpeg-cvslog] r7387 - trunk/ffplay.c

michael subversion
Sun Dec 31 18:59:11 CET 2006


Author: michael
Date: Sun Dec 31 18:59:10 2006
New Revision: 7387

Modified:
   trunk/ffplay.c

Log:
10l (fix segfault with audio only files)


Modified: trunk/ffplay.c
==============================================================================
--- trunk/ffplay.c	(original)
+++ trunk/ffplay.c	Sun Dec 31 18:59:10 2006
@@ -829,9 +829,13 @@
     SDL_UpdateRect(screen, s->xleft, s->ytop, s->width, s->height);
 }
 
+static int video_open(VideoState *is);
+
 /* display the current picture, if any */
 static void video_display(VideoState *is)
 {
+    if(!screen)
+        video_open(cur_stream);
     if (is->audio_st && is->show_audio)
         video_audio_display(is);
     else if (is->video_st)
@@ -2481,9 +2485,6 @@
 
     cur_stream = stream_open(input_filename, file_iformat);
 
-    if(video_disable && !display_disable)
-        video_open(cur_stream);
-
     event_loop();
 
     /* never returns */




More information about the ffmpeg-cvslog mailing list