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

Commit 18721df

Browse files
authored
Only insert sps/pps/vps for key frame of hevc. (#89)
1 parent 918e3b9 commit 18721df

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
@@ -563,7 +563,7 @@ protected void deliverEncodedImage() {
563563
}
564564

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

0 commit comments

Comments
 (0)