diff options
author | wm4 <wm4@nowhere> | 2015-06-05 22:35:43 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-06-05 22:42:59 +0200 |
commit | 57048c7393e94820520a395e569d05cdcc085224 (patch) | |
tree | 329ff5bbeb7ca13076dfa653f03cbc4aa5736730 /options | |
parent | 14ac4f0bd66d05665f43f3e65138f035be06e29e (diff) |
audio: add --audio-spdif as new method for enabling passthrough
This provides a new method for enabling spdif passthrough. The old
method via --ad (--ad=spdif:ac3 etc.) is deprecated. The deprecated
method will probably stop working at some point.
This also supports PCM fallback. One caveat is that it will lose at
least 1 audio packet in doing so. (I don't care enough to prevent this.)
(This is named after the old S/PDIF connector, because it uses the same
underlying technology as far as the higher level protoco is concerned.
Also, the user should be renamed that passthrough is backwards.)
Diffstat (limited to 'options')
-rw-r--r-- | options/options.c | 2 | ||||
-rw-r--r-- | options/options.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c index 65fadc8e94..4ba2db1590 100644 --- a/options/options.c +++ b/options/options.c @@ -279,6 +279,8 @@ const m_option_t mp_opts[] = { OPT_STRING("ad", audio_decoders, 0), OPT_STRING("vd", video_decoders, 0), + OPT_STRING("audio-spdif", audio_spdif, 0), + OPT_FLAG("ad-spdif-dtshd", dtshd, 0), OPT_CHOICE("hwdec", hwdec_api, 0, diff --git a/options/options.h b/options/options.h index a8dd1ade97..b5e0e1f624 100644 --- a/options/options.h +++ b/options/options.h @@ -109,6 +109,7 @@ typedef struct MPOpts { char *audio_decoders; char *video_decoders; + char *audio_spdif; int osd_level; int osd_duration; |