diff options
author | rguyom <rguyom@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-11-03 09:02:56 +0000 |
---|---|---|
committer | rguyom <rguyom@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-11-03 09:02:56 +0000 |
commit | bbe89f470540862bbde7bdeb41ea750e42acb9a2 (patch) | |
tree | 7261edb838078a9fda19a23f575fc4b134a05684 /xvid_vbr.c | |
parent | 36489bf66e43d91f31b64242ef380fc1a907155c (diff) | |
download | mpv-bbe89f470540862bbde7bdeb41ea750e42acb9a2.tar.bz2 mpv-bbe89f470540862bbde7bdeb41ea750e42acb9a2.tar.xz |
- When a frame is in the ending credits zone, say so.
- delete one space (cosmetic)
- From the FreeBSD fopen manpage :
ANSI C requires that a file positioning function intervene
between output and input, unless an input operation encounters
end-of-file.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8073 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'xvid_vbr.c')
-rw-r--r-- | xvid_vbr.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/xvid_vbr.c b/xvid_vbr.c index d410dbd84b..b34ce2c8a3 100644 --- a/xvid_vbr.c +++ b/xvid_vbr.c @@ -111,7 +111,7 @@ static __inline int util_frametype(vbr_control_t *state) if(state->cur_frame >= state->credits_end_begin && state->cur_frame < state->credits_end_end) - return(FRAME_TYPE_STARTING_CREDITS); + return(FRAME_TYPE_ENDING_CREDITS); } @@ -601,7 +601,7 @@ static int vbr_finish_2pass1(void *sstate) /* Goto to the file beginning */ fseek(state->pass1_file, 0, SEEK_SET); - /* Skip the version line and the empty line */ + /* Skip the version line and the empty line */ c = i = 0; do { c = fgetc(state->pass1_file); @@ -611,6 +611,9 @@ 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 ); + /* Overwrite the frame field - safe as we have written extra spaces */ fprintf(state->pass1_file, "# frames : %.10d\n", state->nb_frames); |