--- gst-plugins-good-0.10.3_ori/gst/avi/gstavimux.c	2006-09-15 10:52:30.000000000 -0400
+++ gst-plugins-good-0.10.3/gst/avi/gstavimux.c	2006-09-15 11:38:33.000000000 -0400
@@ -1370,7 +1370,7 @@
   /* statistics/total_frames/... */
   avimux->avi_hdr.tot_frames = avimux->num_frames;
   if (avimux->video_pad_connected) {
-    avimux->vids_hdr.length = avimux->num_frames;
+    avimux->vids_hdr.length = avimux->total_frames;
   }
   if (avimux->audio_pad_connected) {
     avimux->auds_hdr.length =
