备份一下公司一个过期的blog,只有两篇,写在一起吧。
第一篇,关于RTSP协议里面用来同步音频和视频的一个字段。原文如下:
RTSP RTP-Info is used to synchronize audio and video after a seek
A mapping from RTP timestamps to NTP timestamps (wall clock) is available via RTCP. However, this information is not sufficient to generate a mapping from RTP timestamps to NPT. Furthermore, in order to ensure that this information is available at the necessary time (immediately at startup or after a seek), and that it is delivered reliably, this mapping is placed in the RTSP control channel.
第二篇,关于Solaris里__func__的显示问题。原文是一张图片,摘录如下
1: $more main.cpp
2: #include <;iostream>
3:
4: int main()
5: {
6: cout <;< "function name: " << __func__ << endl;
7: return 0;
8: }
9: $CC main.cpp
10: "main.cpp", line 7: Error: __func__ is not defined.
11: 1 Error(s) detected.
12: $CC -features=extensions main.cpp
13: $./a.out
14: function name: main
15: $
主要内容是就是用-feature=extensions可以显示__func__这样的宏。