diff --git a/libavformat/mxg.c b/libavformat/mxg.c index b160ccb9f9..1f649aafc5 100644 --- a/libavformat/mxg.c +++ b/libavformat/mxg.c @@ -125,6 +125,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; }