- 这里的主流和辅流都是使用
frame_len = stStream.pstPack[0].u32Len;//stStream.pstPack[0].u32Len[0];
frame_ptr = stStream.pstPack[0].pu8Addr;//stStream.pstPack[0].pu8Addr[0];
timestamp += (90000/60);
- 注意这里的时间戳
timestamp += (90000/60)/2; 当有主辅码流时,这个要处以2;
这里也可以使用:timestamp = 0.09*stStream.pstPack[0].u64PTS; (不用+=)