summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/demuxers/demux_flac.c7
-rw-r--r--src/demuxers/demux_qt.c7
2 files changed, 7 insertions, 7 deletions
diff --git a/src/demuxers/demux_flac.c b/src/demuxers/demux_flac.c
index 3d90252ee..76fbfbe3d 100644
--- a/src/demuxers/demux_flac.c
+++ b/src/demuxers/demux_flac.c
@@ -23,7 +23,7 @@
* For more information on the FLAC file format, visit:
* http://flac.sourceforge.net/
*
- * $Id: demux_flac.c,v 1.3 2004/06/14 13:40:57 mroi Exp $
+ * $Id: demux_flac.c,v 1.4 2004/06/15 21:22:34 miguelfreitas Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -294,10 +294,11 @@ static void demux_flac_send_headers(demux_plugin_t *this_gen) {
static int demux_flac_seek (demux_plugin_t *this_gen,
off_t start_pos, int start_time, int playing) {
demux_flac_t *this = (demux_flac_t *) this_gen;
- start_pos = (off_t) ( (double) start_pos / 65535 *
- this->data_size );
int seekpoint_index = 0;
int64_t start_pts;
+
+ start_pos = (off_t) ( (double) start_pos / 65535 *
+ this->data_size );
/* if thread is not running, initialize demuxer */
if( !playing ) {
diff --git a/src/demuxers/demux_qt.c b/src/demuxers/demux_qt.c
index 07db42a6e..64dd7a9c7 100644
--- a/src/demuxers/demux_qt.c
+++ b/src/demuxers/demux_qt.c
@@ -30,7 +30,7 @@
* build_frame_table
* free_qt_info
*
- * $Id: demux_qt.c,v 1.187 2004/06/13 21:28:54 miguelfreitas Exp $
+ * $Id: demux_qt.c,v 1.188 2004/06/15 21:22:34 miguelfreitas Exp $
*
*/
@@ -2717,12 +2717,11 @@ static int demux_qt_seek (demux_plugin_t *this_gen,
demux_qt_t *this = (demux_qt_t *) this_gen;
qt_trak *video_trak = NULL;
qt_trak *audio_trak = NULL;
-
+ int64_t keyframe_pts;
+
start_pos = (off_t) ( (double) start_pos / 65535 *
this->data_size );
- int64_t keyframe_pts;
-
/* short-circuit any attempts to seek in a non-seekable stream, including
* seeking in the forward direction; this may change later */
if ((this->input->get_capabilities(this->input) & INPUT_CAP_SEEKABLE) == 0) {