mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-09 17:05:52 +00:00
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
This commit is contained in:
parent
5a07ae4696
commit
805b8ba808
2 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,12 @@
|
|||
2006-09-16 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
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
|
||||
|
||||
2006-09-15 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
Patch by: Darren Kenny <darren dot kenny at sun dot com>
|
||||
|
|
|
@ -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 =
|
||||
|
|
Loading…
Reference in a new issue