mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-08-30 17:58:37 +08:00
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.
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user