Commit fc875873 authored by michael's avatar michael

10l (fix segfault with audio only files)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7387 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 3b2de034
......@@ -829,9 +829,13 @@ static void video_audio_display(VideoState *s)
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 @@ int main(int argc, char **argv)
cur_stream = stream_open(input_filename, file_iformat);
if(video_disable && !display_disable)
video_open(cur_stream);
event_loop();
/* never returns */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment