Commit 2d62e06f authored by James Almer's avatar James Almer

Merge commit 'b9302677'

* commit 'b9302677':
  libfdk-aac: Use enum names instead of literal numbers for the output format
Merged-by: 's avatarJames Almer <jamrial@gmail.com>
parents 3eea8edf b9302677
...@@ -227,7 +227,8 @@ static av_cold int aac_encode_init(AVCodecContext *avctx) ...@@ -227,7 +227,8 @@ static av_cold int aac_encode_init(AVCodecContext *avctx)
/* Choose bitstream format - if global header is requested, use /* Choose bitstream format - if global header is requested, use
* raw access units, otherwise use ADTS. */ * raw access units, otherwise use ADTS. */
if ((err = aacEncoder_SetParam(s->handle, AACENC_TRANSMUX, 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", av_log(avctx, AV_LOG_ERROR, "Unable to set the transmux format: %s\n",
aac_get_error(err)); aac_get_error(err));
goto error; goto error;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment