plugins: Set keyframe flag on encoded audio packets
Not strictly necessary, and does not fix any bug. This just corrects a nitpick that technically audio encoder packets are start points, but that they aren't being labeled accordingly as keyframes.
This commit is contained in:
parent
c0f71f002c
commit
8b6924b80f
3 changed files with 3 additions and 0 deletions
|
|
@ -775,6 +775,7 @@ static bool aac_encode(void *data, struct encoder_frame *frame,
|
|||
packet->timebase_num = 1;
|
||||
packet->timebase_den = (uint32_t)ca->samples_per_second;
|
||||
packet->type = OBS_ENCODER_AUDIO;
|
||||
packet->keyframe = true;
|
||||
packet->size = out_desc.mDataByteSize;
|
||||
packet->data = (uint8_t *)buffer_list.mBuffers[0].mData +
|
||||
out_desc.mStartOffset;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue