fix http ts bug, the adts use id=1 which indicates the aac encoding.
正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
@@ -2772,12 +2772,12 @@ int SrsTsCache::do_cache_aac(SrsAvcAacCodec* codec, SrsCodecSample* sample) | @@ -2772,12 +2772,12 @@ int SrsTsCache::do_cache_aac(SrsAvcAacCodec* codec, SrsCodecSample* sample) | ||
2772 | // 6.2 Audio Data Transport Stream, ADTS | 2772 | // 6.2 Audio Data Transport Stream, ADTS |
2773 | // in aac-iso-13818-7.pdf, page 26. | 2773 | // in aac-iso-13818-7.pdf, page 26. |
2774 | // fixed 7bytes header | 2774 | // fixed 7bytes header |
2775 | - static u_int8_t adts_header[7] = {0xff, 0xf1, 0x00, 0x00, 0x00, 0x0f, 0xfc}; | 2775 | + static u_int8_t adts_header[7] = {0xff, 0xf9, 0x00, 0x00, 0x00, 0x0f, 0xfc}; |
2776 | /* | 2776 | /* |
2777 | // adts_fixed_header | 2777 | // adts_fixed_header |
2778 | // 2B, 16bits | 2778 | // 2B, 16bits |
2779 | int16_t syncword; //12bits, '1111 1111 1111' | 2779 | int16_t syncword; //12bits, '1111 1111 1111' |
2780 | - int8_t ID; //1bit, '0' | 2780 | + int8_t ID; //1bit, '1' |
2781 | int8_t layer; //2bits, '00' | 2781 | int8_t layer; //2bits, '00' |
2782 | int8_t protection_absent; //1bit, can be '1' | 2782 | int8_t protection_absent; //1bit, can be '1' |
2783 | // 12bits | 2783 | // 12bits |
-
请 注册 或 登录 后发表评论