fix aac extradata

This commit is contained in:
wrapper 2025-09-06 12:00:03 +07:00
parent f3b8c820c3
commit 44e3e7f14c

View file

@ -156,6 +156,7 @@ static av_cold int libaac_encode_init(AVCodecContext *avctx)
return AVERROR(ENOMEM);
}
avctx->extradata_size = s->encoder->ascSize;
memcpy(avctx->extradata, s->encoder->asc, s->encoder->ascSize);
}
return 0;