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:
jp9000 2016-12-24 03:44:13 -08:00
parent afe37773bc
commit fba152aed9

View File

@ -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);
}