mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-22 04:22:45 +00:00
Missed the SPS replay code when fixing the Annex B escape sequence issues
This commit is contained in:
parent
92f24d20db
commit
a7d4a04ac2
@ -628,8 +628,10 @@ public class MediaCodecDecoderRenderer extends EnhancedDecoderRenderer {
|
|||||||
// Patch the SPS constraint flags
|
// Patch the SPS constraint flags
|
||||||
doProfileSpecificSpsPatching(savedSps);
|
doProfileSpecificSpsPatching(savedSps);
|
||||||
|
|
||||||
// Write the SPS data
|
// The H264Utils.writeSPS function safely handles
|
||||||
savedSps.write(inputBuffer);
|
// Annex B NALUs (including NALUs with escape sequences)
|
||||||
|
ByteBuffer escapedNalu = H264Utils.writeSPS(savedSps, 128);
|
||||||
|
inputBuffer.put(escapedNalu);
|
||||||
|
|
||||||
// No need for the SPS anymore
|
// No need for the SPS anymore
|
||||||
savedSps = null;
|
savedSps = null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user