0
0
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:
mntone 2017-04-09 10:39:39 +09:00
parent 41731bb096
commit 117898477c

View File

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