Fix: IvfFrameGenerator won't decode frame on release build
Bug: webrtc:10138 Change-Id: Id0a6328da20bbb841ed3cb013a0d96d8d88c0152 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/161446 Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Commit-Queue: Artem Titov <titovartem@webrtc.org> Cr-Commit-Position: refs/heads/master@{#30029}
This commit is contained in:
parent
1518fd34d8
commit
895069045f
@ -74,9 +74,9 @@ FrameGenerator::VideoFrameData IvfVideoFrameGenerator::NextFrame() {
|
||||
absl::optional<EncodedImage> image = file_reader_->NextFrame();
|
||||
RTC_CHECK(image);
|
||||
// Last parameter is undocumented and there is no usage of it found.
|
||||
RTC_DCHECK_EQ(WEBRTC_VIDEO_CODEC_OK,
|
||||
video_decoder_->Decode(*image, /*missing_frames=*/false,
|
||||
/*render_time_ms=*/0));
|
||||
RTC_CHECK_EQ(WEBRTC_VIDEO_CODEC_OK,
|
||||
video_decoder_->Decode(*image, /*missing_frames=*/false,
|
||||
/*render_time_ms=*/0));
|
||||
bool decoded = next_frame_decoded_.Wait(kMaxNextFrameWaitTemeoutMs);
|
||||
RTC_CHECK(decoded) << "Failed to decode next frame in "
|
||||
<< kMaxNextFrameWaitTemeoutMs << "ms. Can't continue";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user