diff --git a/mplayer.c b/mplayer.c index 664fdb7ef0..4df25a5010 100644 --- a/mplayer.c +++ b/mplayer.c @@ -3894,7 +3894,8 @@ if(auto_quality>0){ if (mp_dvdnav_stream_has_changed(mpctx->stream)) { double ar = -1.0; - if (stream_control (mpctx->demuxer->stream, + if (mpctx->sh_video && + stream_control (mpctx->demuxer->stream, STREAM_CTRL_GET_ASPECT_RATIO, &ar) != STREAM_UNSUPPORTED) mpctx->sh_video->stream_aspect = ar;