[FFmpeg-cvslog] avidec: fix "avidec.c:362: warning: st may be used uninitialized in this function"
Michael Niedermayer
git at videolan.org
Sun Jan 22 07:05:30 CET 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Jan 20 20:36:25 2012 +0100| [4f11bed7a1418ec260243a9e6f9c3f5c52a46ea7] | committer: Michael Niedermayer
avidec: fix "avidec.c:362: warning: st may be used uninitialized in this function"
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4f11bed7a1418ec260243a9e6f9c3f5c52a46ea7
---
libavformat/avidec.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 1740c9e..cac760e 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -699,6 +699,7 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap)
}
break;
case MKTAG('s', 't', 'r', 'd'):
+ st = s->streams[stream_index];
if (stream_index >= (unsigned)s->nb_streams || st->codec->extradata_size) {
avio_skip(pb, size);
} else {
More information about the ffmpeg-cvslog
mailing list