[FFmpeg-cvslog] mxg: fix compiler warning for uninitialized variables

Michael Niedermayer git at videolan.org
Sat Dec 31 17:17:34 CET 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Dec 31 16:51:35 2011 +0100| [bd553d5ea940e987333dcdd9a554c3f2622fec8a] | committer: Michael Niedermayer

mxg: fix compiler warning for uninitialized variables

Based on work by: Jean First <jeanfirst at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bd553d5ea940e987333dcdd9a554c3f2622fec8a
---

 libavformat/mxg.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/mxg.c b/libavformat/mxg.c
index b249f67..3e0c421 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);



More information about the ffmpeg-cvslog mailing list