summaryrefslogtreecommitdiff
path: root/libavcodec/aacenc.h
diff options
context:
space:
mode:
authorRostislav Pehlivanov <atomnuker@gmail.com>2015-10-12 16:50:10 +0100
committerRostislav Pehlivanov <atomnuker@gmail.com>2015-10-12 16:57:56 +0100
commit0f4334df45eed326577d076167bb2d48b67a40b7 (patch)
tree3650bfc6bfb085ba4213f355bf094f63ffe5247b /libavcodec/aacenc.h
parentcf28490e564d91c89b4c56e605c6f391bddb9ba9 (diff)
downloadffmpeg-0f4334df45eed326577d076167bb2d48b67a40b7.tar.gz
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.h4
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;