Add a debug function to print out the start of the nal
This commit is contained in:
parent
53851b67c7
commit
19d9812a3f
|
@ -52,6 +52,17 @@ class NAL_Frame {
|
|||
}
|
||||
return false;
|
||||
}
|
||||
void debug() {
|
||||
if ( m_size <= 4 ) {
|
||||
Debug(1, "NAL: %d: %.2x %.2x %.2x %.2x", m_size,
|
||||
m_buffer[0], m_buffer[1], m_buffer[2], m_buffer[3]);
|
||||
} else {
|
||||
Debug(1, "NAL: %d: %.2x %.2x %.2x %.2x %.2x %.2x %.2x %.2x ", m_size,
|
||||
m_buffer[0], m_buffer[1], m_buffer[2], m_buffer[3],
|
||||
m_buffer[4], m_buffer[5], m_buffer[6], m_buffer[7]
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
private:
|
||||
unsigned char* m_buffer;
|
||||
|
@ -63,4 +74,4 @@ class NAL_Frame {
|
|||
};
|
||||
#endif // HAVE_RTSP_SERVER
|
||||
|
||||
#endif // ZM_RTSP_SERVER_FRAME_H
|
||||
#endif // ZM_RTSP_SERVER_FRAME_H
|
||||
|
|
Loading…
Reference in New Issue