Skip to content

Commit a7b84fc

Browse files
committed
Fix building with libdvdnav 4.2.1
1 parent 8b19088 commit a7b84fc

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

configure

+1-1
Original file line numberDiff line numberDiff line change
@@ -5165,7 +5165,7 @@ if test "$_dvdnav" = auto ; then
51655165
res_comment="internal"
51665166
else
51675167
_dvdnav=no
5168-
pkg_config_add dvdnav && _dvdnav=yes
5168+
pkg_config_add "dvdnav >= 4.2.1" && _dvdnav=yes
51695169
fi
51705170
fi
51715171
if test "$_dvdnav" = yes ; then

stream/stream_dvdnav.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -715,13 +715,13 @@ static int mp_dvdnav_get_aid_from_format (stream_t *stream, int index, uint8_t l
715715

716716
format = dvdnav_audio_stream_format(priv->dvdnav, lg);
717717
switch(format) {
718-
case DVDNAV_FORMAT_AC3:
718+
case DVD_AUDIO_FORMAT_AC3:
719719
return index + 128;
720-
case DVDNAV_FORMAT_DTS:
720+
case DVD_AUDIO_FORMAT_DTS:
721721
return index + 136;
722-
case DVDNAV_FORMAT_LPCM:
722+
case DVD_AUDIO_FORMAT_LPCM:
723723
return index + 160;
724-
case DVDNAV_FORMAT_MPEGAUDIO:
724+
case DVD_AUDIO_FORMAT_MPEG2_EXT:
725725
return index;
726726
default:
727727
return -1;

0 commit comments

Comments
 (0)