diff options
author | Rostislav Pehlivanov <atomnuker@gmail.com> | 2015-10-12 18:50:10 +0300 |
---|---|---|
committer | Rostislav Pehlivanov <atomnuker@gmail.com> | 2015-10-12 18:57:56 +0300 |
commit | 0f4334df45eed326577d076167bb2d48b67a40b7 (patch) | |
tree | 3650bfc6bfb085ba4213f355bf094f63ffe5247b /libavcodec/aacenc.h | |
parent | cf28490e564d91c89b4c56e605c6f391bddb9ba9 (diff) |
aacenc: add support for changing options based on a profile
This commit adds the ability for a profile to set the default
options, as well as for the user to override such options
by simply stating them in the command line while still keeping
the same profile, as long as those options are still permitted by
the profile.
Example: setting the profile to aac_low (the default) will turn
PNS and IS on. They can be disabled by -aac_pns 0 and -aac_is 0,
respectively. Turning on -aac_pred 1 will cause the profile to be
elevated to aac_main, as long as no options forbidding aac_main
have been entered (like AAC-LTP, which will be pushed soon).
A useful feature is that by setting the profile to mpeg2_aac_low,
all MPEG4 features will be disabled and if the user tries to enable
them then the program will exit with an error. This profile is
signalled with the same bitstream as aac_low (MPEG4) but some devices
and decoders will fail if any MPEG4 features have been enabled.
Diffstat (limited to 'libavcodec/aacenc.h')
-rw-r--r-- | libavcodec/aacenc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/aacenc.h b/libavcodec/aacenc.h index 98b38a4bde..b29fdf5307 100644 --- a/libavcodec/aacenc.h +++ b/libavcodec/aacenc.h @@ -42,11 +42,11 @@ typedef enum AACCoder { }AACCoder; typedef struct AACEncOptions { - int stereo_mode; - int aac_coder; + int coder; int pns; int tns; int pred; + int mid_side; int intensity_stereo; } AACEncOptions; |