[Spice-devel] [PATCH 1/2] gstreamer: Peephole optimisation

Frediano Ziglio fziglio at redhat.com
Wed Aug 3 09:54:46 UTC 2016


SpiceGstFrameInformation change from 24 to 16 bytes reducing
SpiceGstEncoder 480 bytes.

Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 server/gstreamer-encoder.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/gstreamer-encoder.c b/server/gstreamer-encoder.c
index 396687d..e364ea3 100644
--- a/server/gstreamer-encoder.c
+++ b/server/gstreamer-encoder.c
@@ -59,8 +59,8 @@ typedef struct SpiceGstVideoBuffer {
 
 typedef struct {
     uint32_t mm_time;
-    uint64_t duration;
     uint32_t size;
+    uint64_t duration;
 } SpiceGstFrameInformation;
 
 typedef enum SpiceGstBitRateStatus {
-- 
2.7.4



More information about the Spice-devel mailing list