Change Av1 depacketizer to implement VideoRtpDepacketizer interface
Bug: webrtc:11152 Change-Id: I322115263f60439bee36277157a0acef9bd28e3e Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/165343 Reviewed-by: Sam Zackrisson <saza@webrtc.org> Reviewed-by: Philip Eliasson <philipel@webrtc.org> Commit-Queue: Danil Chapovalov <danilchap@webrtc.org> Cr-Commit-Position: refs/heads/master@{#30260}
This commit is contained in:
committed by
Commit Bot
parent
f1173f46e5
commit
d06588a758
@ -24,10 +24,10 @@
|
||||
#include "api/video/encoded_frame.h"
|
||||
#include "api/video/video_frame_type.h"
|
||||
#include "common_video/h264/h264_common.h"
|
||||
#include "modules/rtp_rtcp/source/rtp_depacketizer_av1.h"
|
||||
#include "modules/rtp_rtcp/source/rtp_header_extensions.h"
|
||||
#include "modules/rtp_rtcp/source/rtp_packet_received.h"
|
||||
#include "modules/rtp_rtcp/source/rtp_video_header.h"
|
||||
#include "modules/rtp_rtcp/source/video_rtp_depacketizer_av1.h"
|
||||
#include "modules/video_coding/codecs/h264/include/h264_globals.h"
|
||||
#include "modules/video_coding/frame_object.h"
|
||||
#include "rtc_base/checks.h"
|
||||
@ -441,7 +441,7 @@ std::unique_ptr<RtpFrameObject> PacketBuffer::AssembleFrame(
|
||||
rtc::scoped_refptr<EncodedImageBuffer> bitstream;
|
||||
// TODO(danilchap): Hide codec-specific code paths behind an interface.
|
||||
if (first_packet.codec() == VideoCodecType::kVideoCodecAV1) {
|
||||
bitstream = RtpDepacketizerAv1::AssembleFrame(payloads);
|
||||
bitstream = VideoRtpDepacketizerAv1::AssembleFrame(payloads);
|
||||
if (!bitstream) {
|
||||
// Failed to assemble a frame. Discard and continue.
|
||||
return nullptr;
|
||||
|
||||
Reference in New Issue
Block a user