From 5f167ce109beb0bd9bce07831f0e5e7679af63db Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Wed, 1 May 2019 19:21:05 -0700 Subject: [PATCH] Fix SPS length being 4 bytes short --- libgamestream/sps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgamestream/sps.c b/libgamestream/sps.c index 2a96923..ba34829 100644 --- a/libgamestream/sps.c +++ b/libgamestream/sps.c @@ -78,5 +78,5 @@ void gs_sps_fix(PLENTRY sps, int flags, uint8_t* out_buf, uint32_t* out_offset) memcpy(out_buf+*out_offset, naluHeader, 4); *out_offset += 4; - *out_offset = write_nal_unit(h264_stream, out_buf+*out_offset, 128); + *out_offset += write_nal_unit(h264_stream, out_buf+*out_offset, 128); }