summaryrefslogtreecommitdiff
path: root/src/demuxers/demux_cda.c
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2003-01-10 21:10:50 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2003-01-10 21:10:50 +0000
commit77ecf6954f81c3e1b9589d2d14b79f839022e690 (patch)
treef8f08e5eeb5d138ac4f4729b0d33f8b3a86792d5 /src/demuxers/demux_cda.c
parentba1dc3c25af7a2c0ab705ff7dfb4286f21e4b931 (diff)
downloadxine-lib-77ecf6954f81c3e1b9589d2d14b79f839022e690.tar.gz
xine-lib-77ecf6954f81c3e1b9589d2d14b79f839022e690.tar.bz2
have length in miliseconds too
fix some intermediate calculation CVS patchset: 3856 CVS date: 2003/01/10 21:10:50
Diffstat (limited to 'src/demuxers/demux_cda.c')
-rw-r--r--src/demuxers/demux_cda.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/demuxers/demux_cda.c b/src/demuxers/demux_cda.c
index cba798f36..9446a82bb 100644
--- a/src/demuxers/demux_cda.c
+++ b/src/demuxers/demux_cda.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: demux_cda.c,v 1.39 2003/01/10 11:57:16 miguelfreitas Exp $
+ * $Id: demux_cda.c,v 1.40 2003/01/10 21:10:57 miguelfreitas Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -80,7 +80,8 @@ static int demux_cda_next (demux_cda_t *this) {
buf->pts = 0;
buf->extra_info->input_pos = pos;
- buf->extra_info->input_time = buf->extra_info->input_pos * 1000 / this->blocksize;
+ buf->extra_info->input_time = (int)((int64_t)buf->extra_info->input_pos
+ * 1000 / this->blocksize);
buf->type = BUF_CONTROL_NOP; /* Fake */
this->video_fifo->put(this->video_fifo, buf);