diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2004-05-24 15:24:05 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2004-05-24 15:24:05 +0000 |
commit | 712347f136945b121925496971465690919fa6b0 (patch) | |
tree | 9c8b0ee8b98a2526a5c7a9bf747b6db76a6cc159 | |
parent | a6e2d4002bc31885d92e741c6d284f4924777bbd (diff) |
gst/avi/gstavidemux.c: Fix potential division by zero error and hopefully get the position query right to get correct...
Original commit message from CVS:
* gst/avi/gstavidemux.c: (gst_avi_demux_handle_src_query):
Fix potential division by zero error and hopefully get
the position query right to get correct timestamps on avi
audio.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | gst/avi/gstavidemux.c | 3 |
2 files changed, 8 insertions, 2 deletions
@@ -1,5 +1,12 @@ 2004-05-24 Wim Taymans <wim@fluendo.com> + * gst/avi/gstavidemux.c: (gst_avi_demux_handle_src_query): + Fix potential division by zero error and hopefully get + the position query right to get correct timestamps on avi + audio. + +2004-05-24 Wim Taymans <wim@fluendo.com> + * gst/videoscale/videoscale.c: (gst_videoscale_scale_nearest), (gst_videoscale_scale_nearest_str2), (gst_videoscale_scale_nearest_str4), diff --git a/gst/avi/gstavidemux.c b/gst/avi/gstavidemux.c index 86081714..11c95ded 100644 --- a/gst/avi/gstavidemux.c +++ b/gst/avi/gstavidemux.c @@ -439,8 +439,7 @@ gst_avi_demux_handle_src_query (GstPad * pad, case GST_QUERY_POSITION: switch (*format) { case GST_FORMAT_TIME: - if (stream->strh->samplesize && - stream->strh->type == GST_RIFF_FCC_auds) { + if (stream->strh->rate && stream->strh->type == GST_RIFF_FCC_auds) { *value = ((gfloat) stream->current_byte) * GST_SECOND / stream->strh->rate; } else { |