mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 21:13:04 +02:00
win-dshow: Fix reallocation issue in ffmpeg-decode
This commit is contained in:
parent
41731bb096
commit
117898477c
@ -101,6 +101,7 @@ static inline void copy_data(struct ffmpeg_decode *decode, uint8_t *data,
|
||||
if (decode->packet_size < new_size) {
|
||||
decode->packet_buffer = brealloc(decode->packet_buffer,
|
||||
new_size);
|
||||
decode->packet_size = new_size;
|
||||
}
|
||||
|
||||
memset(decode->packet_buffer + size, 0, FF_INPUT_BUFFER_PADDING_SIZE);
|
||||
|
Loading…
Reference in New Issue
Block a user