summaryrefslogtreecommitdiffstats
path: root/libhb/deca52.c
diff options
context:
space:
mode:
authorRodeo <[email protected]>2014-01-26 16:12:23 +0000
committerRodeo <[email protected]>2014-01-26 16:12:23 +0000
commit1d7db22df59be148ed995eee7755f21d8f0b9d5b (patch)
tree32eb0acf048550576259f0798f8da0a7975c5703 /libhb/deca52.c
parentee621317fb45852db29b94308b87690827a9a0df (diff)
libhb: support AV_FRAME_DATA_MATRIXENCODING side data.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6000 b64f7644-9d1e-0410-96f1-a4d463321fa5
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]);