Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Commit e4c5580

Browse files
inteltigertaste1981
authored andcommitted
fix is_h265_keyframe (#101)
1 parent 4a33d67 commit e4c5580

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/video_coding/packet_buffer.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,9 +346,9 @@ std::vector<std::unique_ptr<PacketBuffer::Packet>> PacketBuffer::FindFrames(
346346
has_h265_idr = true;
347347
}
348348
}
349-
if ((has_h265_sps && has_h265_pps) || has_h265_idr) {
349+
if (has_h265_sps && has_h265_pps && has_h265_idr) {
350350
is_h265_keyframe = true;
351-
if (buffer_[start_index]->width() > 0 &&
351+
if (buffer_[start_index]->width() > 0 &&
352352
buffer_[start_index]->height() > 0) {
353353
idr_width = buffer_[start_index]->width();
354354
idr_height = buffer_[start_index]->height();

0 commit comments

Comments
 (0)