Introduction - If you have any usage issues, please Google them yourself
According to a white paper written by parsing H264 SPS frames to get the video resolution of the code. Existing code online are imperfect, encounter special circumstances will not read the resolution. This code is my own writing in accordance with the White Paper. up to now did not encounter the solution does not come out of the situation can give you references. MAIN inside will not compile, but enough to make you understand if you use it.