mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-10-25 13:31:55 +00:00
Missed the SPS replay code when fixing the Annex B escape sequence issues
This commit is contained in:
1 parent
92f24d20db
commit
a7d4a04ac2
1 file changed
+4
-2
@@ -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;
|
||||||
|
|||||||
Reference in new issue
Block a user