Mercurial > hg > easaier-soundaccess
diff sv/videoio/SDL_ffmpeg.cpp @ 138:3b2b790e47e5
(none)
author | ivand_qmul |
---|---|
date | Fri, 09 Nov 2007 12:58:47 +0000 |
parents | b3df8b8185db |
children | c946c19e6329 |
line wrap: on
line diff
--- a/sv/videoio/SDL_ffmpeg.cpp Fri Nov 09 10:36:16 2007 +0000 +++ b/sv/videoio/SDL_ffmpeg.cpp Fri Nov 09 12:58:47 2007 +0000 @@ -46,7 +46,7 @@ //const int SDL_FFMPEG_MAX_BUFFERED_FRAMES = 25; //const int SDL_FFMPEG_MAX_BUFFERED_SAMPLES = 512 * 512; -extern float hopfactor; + int FFMPEG_init_was_called = 0; FILE *pFile, *tFile; int64_t Time,Time1; @@ -370,7 +370,7 @@ fprintf (tFile, "%u\t", x); fprintf (tFile, "%u\t", realt); fprintf (tFile, "%u\t", tt); - timestamp=(pos-option->timestamp+((AVFormatContext*)file->_ffmpeg)->start_time/1000)/hopfactor; + timestamp=(pos-option->timestamp+((AVFormatContext*)file->_ffmpeg)->start_time/1000)/MWinsA->getPlaySpeedVal(); fprintf (tFile, "%u\t", pos);//+ (file->vs[file->videoStream]->timeBase)/4+((AVFormatContext*)file->_ffmpeg)->start_time/1000); fprintf (tFile, "%d\n", timestamp); // we did found an option, so we return the imagedata