Merge pull request #873 from mntone/patch-dshow-ffmpeg

win-dshow: Fix reallocation issue in ffmpeg-decode
master
Jim 2017-04-08 19:05:06 -07:00 committed by GitHub
commit cb38325009
1 changed files with 1 additions and 0 deletions

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