Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我通过 av_read_frame 从 rtsp 收到一个数据包并通过它解码
avcodec_decode_video2(pCodecCtx, pFrame, &frameFinished, &packet)
解码后,我正在检查 frameFinished 的值。
大多数时候我得到 frameFinished 的值为零。可能是数据包的 50% 左右。
你能告诉我可能是什么原因吗?
这个问题是否与“I”、“P”、“B”数据包类型有关?