From 805b8ba808950ba9b775e3e3b95caf413ddaf1d2 Mon Sep 17 00:00:00 2001 From: Yves Lefebvre Date: Sat, 16 Sep 2006 14:30:59 +0000 Subject: [PATCH] gst/avi/gstavimux.c: Correctly set the dwLength in strh. Original commit message from CVS: Patch by: Yves Lefebvre * gst/avi/gstavimux.c: (gst_avi_mux_stop_file): Correctly set the dwLength in strh. With this patch, the file duration is now displayed correctly in window media player and the AVI plays completely. Fixes #356147 --- ChangeLog | 9 +++++++++ gst/avi/gstavimux.c | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e79f65ab90..531c509780 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2006-09-16 Wim Taymans + + Patch by: Yves Lefebvre + + * gst/avi/gstavimux.c: (gst_avi_mux_stop_file): + Correctly set the dwLength in strh. + With this patch, the file duration is now displayed correctly in window + media player and the AVI plays completely. Fixes #356147 + 2006-09-15 Wim Taymans Patch by: Darren Kenny diff --git a/gst/avi/gstavimux.c b/gst/avi/gstavimux.c index 82e339b0c8..1f1eb2765d 100644 --- a/gst/avi/gstavimux.c +++ b/gst/avi/gstavimux.c @@ -1370,7 +1370,7 @@ gst_avi_mux_stop_file (GstAviMux * avimux) /* 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 =