History

lavc: Add option to encode MPEG-2 AAC with libfdk-aac

Kieran Kunhya committed 13 years ago

Commit 95d52461 parent ace87c15 files · +9 −1Browse files

Unified · Split

5 files
  1. doc/APIchanges +3 −0
  2. libavcodec/avcodec.h +2 −0
  3. libavcodec/libfdk-aacenc.c +1 −0
  4. libavcodec/options_table.h +2 −0
  5. libavcodec/version.h +1 −1
doc/APIchanges+3−0
@@ -13,6 +13,9 @@ libavutil: 2012-10-22 · 12 unmodified lines
1313
1414 API changes, most recent first:
1515
16+2013-06-xx - xxxxxxx - lavc 55.10.0 - avcodec.h
17+ Add MPEG-2 AAC profiles
18+
1619 2013-06-xx - xxxxxxx - lavu 52.13.0 - mem.h
1720 Add av_realloc_array and av_reallocp_array
1821
libavcodec/avcodec.h+2−0
@@ -2530,6 +2530,8 @@ typedef struct AVCodecContext { · 2529 unmodified lines
25302530 #define FF_PROFILE_AAC_HE_V2 28
25312531 #define FF_PROFILE_AAC_LD 22
25322532 #define FF_PROFILE_AAC_ELD 38
2533+#define FF_PROFILE_MPEG2_AAC_LOW 128
2534+#define FF_PROFILE_MPEG2_AAC_HE 131
25332535
25342536 #define FF_PROFILE_DTS 20
25352537 #define FF_PROFILE_DTS_ES 30
libavcodec/libfdk-aacenc.c+1−0
@@ -197,6 +197,7 @@ static av_cold int aac_encode_init(AVCodecContext *avctx) · 196 unmodified lines
197197 avctx->bit_rate = (96*sce + 128*cpe) * avctx->sample_rate / 44;
198198 if (avctx->profile == FF_PROFILE_AAC_HE ||
199199 avctx->profile == FF_PROFILE_AAC_HE_V2 ||
200+ avctx->profile == FF_PROFILE_MPEG2_AAC_HE ||
200201 s->eld_sbr)
201202 avctx->bit_rate /= 2;
202203 }
libavcodec/options_table.h+2−0
@@ -291,6 +291,8 @@ static const AVOption options[]={ · 290 unmodified lines
291291 {"aac_he_v2", NULL, 0, AV_OPT_TYPE_CONST, {.i64 = FF_PROFILE_AAC_HE_V2 }, INT_MIN, INT_MAX, A|E, "profile"},
292292 {"aac_ld", NULL, 0, AV_OPT_TYPE_CONST, {.i64 = FF_PROFILE_AAC_LD }, INT_MIN, INT_MAX, A|E, "profile"},
293293 {"aac_eld", NULL, 0, AV_OPT_TYPE_CONST, {.i64 = FF_PROFILE_AAC_ELD }, INT_MIN, INT_MAX, A|E, "profile"},
294+{"mpeg2_aac_low", NULL, 0, AV_OPT_TYPE_CONST, {.i64 = FF_PROFILE_MPEG2_AAC_LOW }, INT_MIN, INT_MAX, A|E, "profile"},
295+{"mpeg2_aac_he", NULL, 0, AV_OPT_TYPE_CONST, {.i64 = FF_PROFILE_MPEG2_AAC_HE }, INT_MIN, INT_MAX, A|E, "profile"},
294296 {"dts", NULL, 0, AV_OPT_TYPE_CONST, {.i64 = FF_PROFILE_DTS }, INT_MIN, INT_MAX, A|E, "profile"},
295297 {"dts_es", NULL, 0, AV_OPT_TYPE_CONST, {.i64 = FF_PROFILE_DTS_ES }, INT_MIN, INT_MAX, A|E, "profile"},
296298 {"dts_96_24", NULL, 0, AV_OPT_TYPE_CONST, {.i64 = FF_PROFILE_DTS_96_24 }, INT_MIN, INT_MAX, A|E, "profile"},
libavcodec/version.h+1−1
@@ -27,7 +27,7 @@ · 26 unmodified lines
2727 */
2828
2929 #define LIBAVCODEC_VERSION_MAJOR 55
30−#define LIBAVCODEC_VERSION_MINOR 9
30+#define LIBAVCODEC_VERSION_MINOR 10
3131 #define LIBAVCODEC_VERSION_MICRO 0
3232
3333 #define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t