提交 11789847 编写于 作者: M mntone

win-dshow: Fix reallocation issue in ffmpeg-decode

上级 41731bb0
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册