[vlc-commits] audiotrack: fix length for DTS_HD

Thomas Guillem git at videolan.org
Fri Jun 7 11:01:14 CEST 2019


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Jun  7 10:55:56 2019 +0200| [09e8e01e19e5f588244a9dcf183eb04d25fb9e56] | committer: Thomas Guillem

audiotrack: fix length for DTS_HD

Unlikely to fix anything since this code patch is disabled. DTS_HD had never
been tested and enabled on API 23. It is working on API >= 24 with IEC61937
encoding.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=09e8e01e19e5f588244a9dcf183eb04d25fb9e56
---

 modules/audio_output/audiotrack.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/modules/audio_output/audiotrack.c b/modules/audio_output/audiotrack.c
index 2e51bb9cbd..6e70c0e98e 100644
--- a/modules/audio_output/audiotrack.c
+++ b/modules/audio_output/audiotrack.c
@@ -1911,9 +1911,11 @@ ConvertFromIEC61937( audio_output_t *p_aout, block_t *p_buffer )
         case 0x0B: /* IEC61937_DTS1 */
         case 0x0C: /* IEC61937_DTS2 */
         case 0x0D: /* IEC61937_DTS3 */
-        case 0x11: /* IEC61937_DTSHD */
             i_length_mul = 8;
             break;
+        case 0x11: /* IEC61937_DTSHD */
+            i_length_mul = 1;
+            break;
         default:
             vlc_assert_unreachable();
     }



More information about the vlc-commits mailing list