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

Commit 67ed7e4

Browse files
committed
Only insert sps/pps/vps for key frame of hevc. (#89)
1 parent af17b52 commit 67ed7e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/android/src/java/org/webrtc/HardwareVideoEncoder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ protected void deliverEncodedImage() {
562562
}
563563

564564
final ByteBuffer frameBuffer;
565-
if (isKeyFrame && codecType == VideoCodecMimeType.H264 || codecType == VideoCodecMimeType.H265) {
565+
if (isKeyFrame && (codecType == VideoCodecMimeType.H264 || codecType == VideoCodecMimeType.H265)) {
566566
Logging.d(TAG,
567567
"Prepending config frame of size " + configBuffer.capacity()
568568
+ " to output buffer with offset " + info.offset + ", size " + info.size);

0 commit comments

Comments
 (0)