diff --git a/libavformat/mxg.c b/libavformat/mxg.c index fe5879ecf0..6f9a4446d5 100644 --- a/libavformat/mxg.c +++ b/libavformat/mxg.c @@ -126,6 +126,8 @@ static int mxg_update_cache(AVFormatContext *s, unsigned int cache_size) mxg->cache_size += ret; + memset(mxg->buffer_ptr + mxg->cache_size, 0, AV_INPUT_BUFFER_PADDING_SIZE); + return ret; }