aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/avidec.c
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2006-07-02 19:35:07 +0000
committerMåns Rullgård <mans@mansr.com>2006-07-02 19:35:07 +0000
commit26b891356c14bde0dda189d0b26d4e7fc415ecaf (patch)
tree126f2e26620bbb8e98ca5496133ee788215ba93a /libavformat/avidec.c
parent4dddc5e10cfa4e5495a6a2c05e8057e9584bb64c (diff)
downloadffmpeg-26b891356c14bde0dda189d0b26d4e7fc415ecaf.tar.gz
kill warnings
Originally committed as revision 5586 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avidec.c')
-rw-r--r--libavformat/avidec.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 134652f3b0..232bbfe4d9 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -137,10 +137,12 @@ static int read_braindead_odml_indx(AVFormatContext *s, int frame_num){
ast->cum_len ++;
last_pos= pos;
}else{
- int64_t offset= get_le64(pb);
- int size = get_le32(pb);
- int duration = get_le32(pb);
- int64_t pos= url_ftell(pb);
+ int64_t offset, pos;
+ int duration;
+ offset = get_le64(pb);
+ get_le32(pb); /* size */
+ duration = get_le32(pb);
+ pos = url_ftell(pb);
url_fseek(pb, offset+8, SEEK_SET);
read_braindead_odml_indx(s, frame_num);
@@ -186,7 +188,7 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap)
unsigned int size, nb_frames;
int i, n;
AVStream *st;
- AVIStream *ast;
+ AVIStream *ast = NULL;
int xan_video = 0; /* hack to support Xan A/V */
avi->stream_index= -1;