mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
mxg: fix compiler warning for uninitialized variables
Based on work by: Jean First <jeanfirst@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
acc88f07d4
commit
bd553d5ea9
@ -104,7 +104,7 @@ static int mxg_update_cache(AVFormatContext *s, unsigned int cache_size)
|
||||
/* reallocate internal buffer */
|
||||
if (current_pos > current_pos + cache_size)
|
||||
return AVERROR(ENOMEM);
|
||||
if (mxg->soi_ptr) soi_pos = mxg->soi_ptr - mxg->buffer;
|
||||
soi_pos = mxg->soi_ptr - mxg->buffer;
|
||||
mxg->buffer = av_fast_realloc(mxg->buffer, &mxg->buffer_size,
|
||||
current_pos + cache_size +
|
||||
FF_INPUT_BUFFER_PADDING_SIZE);
|
||||
|
Loading…
Reference in New Issue
Block a user