# HG changeset patch # User mru # Date 1151868907 0 # Node ID d3a8c634106f1384701862219ff0c959b5556a9c # Parent 8bae9057478c176e109d98f3b9ba6777e70a87e1 kill warnings diff -r 8bae9057478c -r d3a8c634106f avidec.c --- a/avidec.c Fri Jun 30 08:26:29 2006 +0000 +++ b/avidec.c Sun Jul 02 19:35:07 2006 +0000 @@ -137,10 +137,12 @@ 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 @@ 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;