diff options
author | Yves Lefebvre <ivanohe@abacom.com> | 2006-09-16 14:30:59 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2006-09-16 14:30:59 +0000 |
commit | 805b8ba808950ba9b775e3e3b95caf413ddaf1d2 (patch) | |
tree | 482dd9933eaec1822e40e706fea5ed87e68942b7 /gst/avi/gstavimux.c | |
parent | 5a07ae46968f997076a0091906a313c74d6a4bae (diff) |
gst/avi/gstavimux.c: Correctly set the dwLength in strh.
Original commit message from CVS:
Patch by: Yves Lefebvre <ivanohe at abacom dot com>
* 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
Diffstat (limited to 'gst/avi/gstavimux.c')
-rw-r--r-- | gst/avi/gstavimux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/avi/gstavimux.c b/gst/avi/gstavimux.c index 82e339b0..1f1eb276 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 = |