diff --git a/mencoder.c b/mencoder.c index e1c7ef2823..c1dc9fcd40 100644 --- a/mencoder.c +++ b/mencoder.c @@ -578,6 +578,13 @@ if(stream->type==STREAMTYPE_DVD){ if(audio_lang && audio_id==-1) audio_id=dvd_aid_from_lang(stream,audio_lang); if(dvdsub_lang && dvdsub_id==-2) dvdsub_id=dvd_sid_from_lang(stream,dvdsub_lang); } +#endif + +#ifdef USE_DVDNAV +if(stream->type==STREAMTYPE_DVDNAV){ + if(audio_lang && audio_id==-1) audio_id=dvdnav_aid_from_lang(stream,audio_lang); + if(dvdsub_lang && dvdsub_id==-2) dvdsub_id=dvdnav_sid_from_lang(stream,dvdsub_lang); +} #endif stream->start_pos+=seek_to_byte;