From fba152aed9b753a9ad2808772bd6a5d86ba12ff2 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Sat, 24 Dec 2016 03:44:13 -0800 Subject: [PATCH] libobs: Fix bug in AVC encoder packet allocation Meant to subtract the ref size, not add. This is what one gets for "clever" coding tricks. --- libobs/obs-avc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libobs/obs-avc.c b/libobs/obs-avc.c index ce235d5ce..8dd64591f 100644 --- a/libobs/obs-avc.c +++ b/libobs/obs-avc.c @@ -142,7 +142,7 @@ void obs_parse_avc_packet(struct encoder_packet *avc_packet, &avc_packet->priority); avc_packet->data = output.bytes.array + sizeof(ref); - avc_packet->size = output.bytes.num + sizeof(ref); + avc_packet->size = output.bytes.num - sizeof(ref); avc_packet->drop_priority = get_drop_priority(avc_packet->priority); }