diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-10-15 16:11:30 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-10-15 16:11:30 +0000 |
commit | b7e93ce09e28541a659092f89b58d2c32d911d83 (patch) | |
tree | cf3fd7d6774543b66e4c943cf408235fd266a5df | |
parent | 195f0466d5dda7f85c538a1c5567d35f39941419 (diff) |
avoid segfault with -vc dummy
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13650 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libmpdemux/demux_mpg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpdemux/demux_mpg.c b/libmpdemux/demux_mpg.c index ce5064cf7e..0ae582632e 100644 --- a/libmpdemux/demux_mpg.c +++ b/libmpdemux/demux_mpg.c @@ -417,7 +417,7 @@ int demux_mpg_control(demuxer_t *demuxer,int cmd, void *arg){ switch(cmd) { case DEMUXER_CTRL_GET_TIME_LENGTH: - if(!sh_video->i_bps) // unspecified or VBR + if(!sh_video || !sh_video->i_bps) // unspecified or VBR return DEMUXER_CTRL_DONTKNOW; *((unsigned long *)arg)=(demuxer->movi_end-demuxer->movi_start)/sh_video->i_bps; return DEMUXER_CTRL_GUESS; |