summaryrefslogtreecommitdiffstats
path: root/xvid_vbr.c
diff options
context:
space:
mode:
Diffstat (limited to 'xvid_vbr.c')
-rw-r--r--xvid_vbr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xvid_vbr.c b/xvid_vbr.c
index b34ce2c8a3..aaec3165a7 100644
--- a/xvid_vbr.c
+++ b/xvid_vbr.c
@@ -612,7 +612,7 @@ static int vbr_finish_2pass1(void *sstate)
}while(i < 2);
/* Prepare to write to the stream */
- fseek( state->pass1_file, ftell( state->pass1_file ), SEEK_SET );
+ fseek( state->pass1_file, 0L, SEEK_CUR );
/* Overwrite the frame field - safe as we have written extra spaces */
fprintf(state->pass1_file, "# frames : %.10d\n", state->nb_frames);