音頻封裝遇到的問題:
Malformed AAC bitstream detected: use the audio bitstream filter 'aac_adtstoasc' to fix it ('-bsf:a aac_adtstoasc' option with ffmpeg)
解決:
在音頻資料處理之前,加上這句即可:
AVBitStreamFilterContext* aacbsfc = av_bitstream_filter_init("aac_adtstoasc");
原因是FIX:AAC in some container format (FLV, MP4, MKV etc.) need "aac_adtstoasc" bitstream filter (BSF)