diff options
author | Rodeo <[email protected]> | 2015-05-19 21:26:51 +0000 |
---|---|---|
committer | Rodeo <[email protected]> | 2015-05-19 21:26:51 +0000 |
commit | 448fcf8b021bbe59a413a033356f047eaf3343bc (patch) | |
tree | a24986143536dfea30441df3ca8e069ef590b007 /libhb/common.c | |
parent | 99a98a6d9ca400020796df9298a4ed64cfaa2fbb (diff) |
libhb: assume remix support when input layout is not set.
Allows querying an encoder's default mixdown from places where the
input channel layout is unavailable (e.g. audio defaults panel).
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7212 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/common.c')
-rw-r--r-- | libhb/common.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libhb/common.c b/libhb/common.c index d28a21afc..1c8ac0925 100644 --- a/libhb/common.c +++ b/libhb/common.c @@ -1564,6 +1564,14 @@ int hb_mixdown_has_codec_support(int mixdown, uint32_t codec) int hb_mixdown_has_remix_support(int mixdown, uint64_t layout) { + /* + * Where there isn't a source (e.g. audio defaults panel), we have no input + * layout; assume remix support, as the mixdown will be sanitized later on. + */ + if (!layout) + { + return 1; + } switch (mixdown) { // stereo + front left/right of center |