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

Commit 6522279

Browse files
authored
fix is_h265_keyframe (#101)
1 parent be80ca0 commit 6522279

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
@@ -342,9 +342,9 @@ std::vector<std::unique_ptr<PacketBuffer::Packet>> PacketBuffer::FindFrames(
342342
has_h265_idr = true;
343343
}
344344
}
345-
if ((has_h265_sps && has_h265_pps) || has_h265_idr) {
345+
if (has_h265_sps && has_h265_pps && has_h265_idr) {
346346
is_h265_keyframe = true;
347-
if (buffer_[start_index]->width() > 0 &&
347+
if (buffer_[start_index]->width() > 0 &&
348348
buffer_[start_index]->height() > 0) {
349349
idr_width = buffer_[start_index]->width();
350350
idr_height = buffer_[start_index]->height();

0 commit comments

Comments
 (0)