为什么 webrtc 中 p 帧的 num_references 是 1?

Why the num_references is 1 for p frames in webrtc?

在webrtc中,非关键帧的参考帧是1:

frame->num_references = frame->frame_type() == kVideoFrameKey ? 0 : 1;

但是对于h264,参考帧最多可以是16个?为什么在webrtc中是1?

我想你看看这个 rtp 代码 https://webrtc.googlesource.com/src/webrtc/+/f54860e9ef0b68e182a01edc994626d21961bc4b/modules/video_coding/rtp_frame_reference_finder.cc

查看文件中其他出现的 frame->num_references,您会发现它并不总是 0 或 1。