projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0645b7
)
avidemux: correct duration for audio VBR buffers in pull mode
author
Mark Nauwelaerts
<mnauw@users.sourceforge.net>
Sun, 10 Feb 2013 14:10:32 +0000
(15:10 +0100)
committer
Mark Nauwelaerts
<mnauw@users.sourceforge.net>
Sun, 10 Feb 2013 14:10:32 +0000
(15:10 +0100)
gst/avi/gstavidemux.c
patch
|
blob
|
history
diff --git
a/gst/avi/gstavidemux.c
b/gst/avi/gstavidemux.c
index
a68b70f
..
d0df79e
100644
(file)
--- a/
gst/avi/gstavidemux.c
+++ b/
gst/avi/gstavidemux.c
@@
-1370,9
+1370,13
@@
gst_avi_demux_get_buffer_info (GstAviDemux * avi, GstAviStream * stream,
if (timestamp)
*timestamp =
avi_stream_convert_frames_to_time_unchecked (stream, entry->total);
- if (ts_end)
+ if (ts_end) {
+ gint size = 1;
+ if (G_LIKELY (entry_n + 1 < stream->idx_n))
+ size = stream->index[entry_n + 1].total - entry->total;
*ts_end = avi_stream_convert_frames_to_time_unchecked (stream,
- entry->total + 1);
+ entry->total + size);
+ }
} else {
if (timestamp)
*timestamp =