Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2162 from ace20022/unify_stream_lang
Unify the assignment and usage of the name and language of streams
- Loading branch information
Showing
16 changed files
with
393 additions
and
192 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
lib/libdvd/patches/libdvdnav_correct_audio_format_enum.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- libdvdnav-4.2.0/src/dvdnav/dvd_types.h Wed Mar 20 08:51:10 2013 | ||
+++ lib/libdvd/libdvdnav/src/dvdnav/dvd_types.h Wed Mar 20 12:22:25 2013 | ||
@@ -161,14 +161,13 @@ | ||
/* The audio format */ | ||
typedef enum { | ||
DVD_AUDIO_FORMAT_AC3 = 0, | ||
- DVD_AUDIO_FORMAT_MPEG1 = 1, | ||
- DVD_AUDIO_FORMAT_MPEG1_DRC = 2, | ||
- DVD_AUDIO_FORMAT_MPEG2 = 3, | ||
- DVD_AUDIO_FORMAT_MPEG2_DRC = 4, | ||
- DVD_AUDIO_FORMAT_LPCM = 5, | ||
+ DVD_AUDIO_FORMAT_UNKNOWN_1 = 1, | ||
+ DVD_AUDIO_FORMAT_MPEG = 2, | ||
+ DVD_AUDIO_FORMAT_MPEG2_EXT = 3, | ||
+ DVD_AUDIO_FORMAT_LPCM = 4, | ||
+ DVD_AUDIO_FORMAT_UNKNOWN_5 = 5, | ||
DVD_AUDIO_FORMAT_DTS = 6, | ||
- DVD_AUDIO_FORMAT_SDDS = 7, | ||
- DVD_AUDIO_FORMAT_Other = 8 | ||
+ DVD_AUDIO_FORMAT_SDDS = 7 | ||
} DVDAudioFormat_t; | ||
|
||
/* Audio language extension */ |
33 changes: 33 additions & 0 deletions
33
lib/libdvd/patches/libdvdnav_correct_dvdnav_audio_stream_format.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- libdvdnav-4.2.0/src/dvdnav.c Wed Mar 20 11:38:53 2013 | ||
+++ lib/libdvd/libdvdnav/src/dvdnav.c Wed Mar 20 13:20:35 2013 | ||
@@ -907,27 +925,10 @@ | ||
attr = vm_get_audio_attr(this->vm, stream); | ||
pthread_mutex_unlock(&this->vm_lock); | ||
|
||
- switch(attr.audio_format) { | ||
- case 0: | ||
- format = DVDNAV_FORMAT_AC3; | ||
- break; | ||
- case 2: /* MPEG-1 or MPEG-2 without extension bitstream. */ | ||
- case 3: /* MPEG-2 with extension bitstream. */ | ||
- format = DVDNAV_FORMAT_MPEGAUDIO; | ||
- break; | ||
- case 4: | ||
- format = DVDNAV_FORMAT_LPCM; | ||
- break; | ||
- case 6: | ||
- format = DVDNAV_FORMAT_DTS; | ||
- break; | ||
- case 7: | ||
- format = DVDNAV_FORMAT_SDDS; | ||
- break; | ||
- default: | ||
+ if (attr.audio_format >=0 && attr.audio_format <= 7) | ||
+ format = attr.audio_format; | ||
+ else | ||
format = 0xffff; | ||
- break; | ||
- } | ||
|
||
return format; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- libdvdnav-4.2.0/src/dvdnav/dvdnav.h Wed Mar 20 11:38:52 2013 | ||
+++ lib/libdvd/libdvdnav/src/dvdnav/dvdnav.h Wed Mar 20 13:19:13 2013 | ||
@@ -63,12 +63,6 @@ | ||
#define DVDNAV_STATUS_ERR 0 | ||
#define DVDNAV_STATUS_OK 1 | ||
|
||
-#define DVDNAV_FORMAT_AC3 0 | ||
-#define DVDNAV_FORMAT_MPEGAUDIO 3 | ||
-#define DVDNAV_FORMAT_LPCM 4 | ||
-#define DVDNAV_FORMAT_DTS 5 | ||
-#define DVDNAV_FORMAT_SDDS 6 | ||
- | ||
/********************************************************************* | ||
* initialisation & housekeeping functions * | ||
*********************************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.