summaryrefslogtreecommitdiffstats
path: root/libhb/deca52.c
diff options
context:
space:
mode:
Diffstat (limited to 'libhb/deca52.c')
-rw-r--r--libhb/deca52.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libhb/deca52.c b/libhb/deca52.c
index 5dde0378a..015d00b39 100644
--- a/libhb/deca52.c
+++ b/libhb/deca52.c
@@ -537,6 +537,14 @@ static int deca52BSInfo( hb_work_object_t *w, const hb_buffer_t *b,
info->mode = raw & 0x7; /* bsmod is the following 3 bits */
info->samples_per_frame = 1536;
+ if ((flags & A52_CHANNEL_MASK) == A52_DOLBY)
+ {
+ info->matrix_encoding = AV_MATRIX_ENCODING_DOLBY;
+ }
+ else
+ {
+ info->matrix_encoding = AV_MATRIX_ENCODING_NONE;
+ }
info->channel_layout = (acmod2layout[(flags & A52_CHANNEL_MASK)] |
lfeon2layout[(flags & A52_LFE) != 0]);