mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
ext/ffmpeg/gstffmpegdemux.c: timestamp is a GstClockTime, not a double..
Original commit message from CVS: * ext/ffmpeg/gstffmpegdemux.c: (gst_ffmpegdemux_loop): timestamp is a GstClockTime, not a double.. fix #309149 and maybe others bug
This commit is contained in:
parent
26d61e741b
commit
beb616773d
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2005-06-27 Luca Ognibene <luogni@tin.it>
|
||||||
|
|
||||||
|
* ext/ffmpeg/gstffmpegdemux.c: (gst_ffmpegdemux_loop):
|
||||||
|
timestamp is a GstClockTime, not a double..
|
||||||
|
fix #309149 and maybe others bug
|
||||||
|
|
||||||
2005-06-27 Daniel Fischer <dan@f3c.com>
|
2005-06-27 Daniel Fischer <dan@f3c.com>
|
||||||
|
|
||||||
reviewed by: Luca Ognibene <luogni@tin.it>
|
reviewed by: Luca Ognibene <luogni@tin.it>
|
||||||
|
|
|
@ -656,7 +656,7 @@ gst_ffmpegdemux_loop (GstElement * element)
|
||||||
GST_BUFFER_SIZE (outbuf) = pkt.size;
|
GST_BUFFER_SIZE (outbuf) = pkt.size;
|
||||||
|
|
||||||
if (pkt.pts != AV_NOPTS_VALUE) {
|
if (pkt.pts != AV_NOPTS_VALUE) {
|
||||||
GST_BUFFER_TIMESTAMP (outbuf) = (gdouble) (pkt.pts +
|
GST_BUFFER_TIMESTAMP (outbuf) = (GstClockTime) (pkt.pts +
|
||||||
stream->start_time) * GST_SECOND / AV_TIME_BASE;
|
stream->start_time) * GST_SECOND / AV_TIME_BASE;
|
||||||
demux->last_ts[stream->index] = GST_BUFFER_TIMESTAMP (outbuf);
|
demux->last_ts[stream->index] = GST_BUFFER_TIMESTAMP (outbuf);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue