diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-12-31 16:51:35 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-12-31 17:15:31 +0100 |
commit | bd553d5ea940e987333dcdd9a554c3f2622fec8a (patch) | |
tree | 663f0393313e31cd6de799dbb84ed102b7f606af /libavformat/mxg.c | |
parent | acc88f07d49fdc650eff880806a9f8387a9abbbf (diff) | |
download | ffmpeg-bd553d5ea940e987333dcdd9a554c3f2622fec8a.tar.gz |
mxg: fix compiler warning for uninitialized variables
Based on work by: Jean First <jeanfirst@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mxg.c')
-rw-r--r-- | libavformat/mxg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mxg.c b/libavformat/mxg.c index b249f67a63..3e0c4219e4 100644 --- a/libavformat/mxg.c +++ b/libavformat/mxg.c @@ -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); |