diff options
author | Martin Storsjö <martin@martin.st> | 2018-07-05 23:05:02 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2018-07-06 23:03:32 +0300 |
commit | b93026777aada7742583d8c5ab079e9f4dfe9a5d (patch) | |
tree | c0c8ce772b4c93cdfb005ae88b75e384ceadaa27 /libavcodec/libfdk-aacenc.c | |
parent | 52fd2afce8436c59c05765f3a6e95f9adb6f9f2f (diff) | |
download | ffmpeg-b93026777aada7742583d8c5ab079e9f4dfe9a5d.tar.gz |
libfdk-aac: Use enum names instead of literal numbers for the output format
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavcodec/libfdk-aacenc.c')
-rw-r--r-- | libavcodec/libfdk-aacenc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/libfdk-aacenc.c b/libavcodec/libfdk-aacenc.c index 26dfb6dc0b..c340a1e3e0 100644 --- a/libavcodec/libfdk-aacenc.c +++ b/libavcodec/libfdk-aacenc.c @@ -227,7 +227,8 @@ static av_cold int aac_encode_init(AVCodecContext *avctx) /* Choose bitstream format - if global header is requested, use * raw access units, otherwise use ADTS. */ if ((err = aacEncoder_SetParam(s->handle, AACENC_TRANSMUX, - avctx->flags & AV_CODEC_FLAG_GLOBAL_HEADER ? 0 : s->latm ? 10 : 2)) != AACENC_OK) { + avctx->flags & AV_CODEC_FLAG_GLOBAL_HEADER ? TT_MP4_RAW : + s->latm ? TT_MP4_LOAS : TT_MP4_ADTS)) != AACENC_OK) { av_log(avctx, AV_LOG_ERROR, "Unable to set the transmux format: %s\n", aac_get_error(err)); goto error; |