diff options
author | Bobby Bingham <uhmmmm@gmail.com> | 2007-03-29 05:24:35 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2007-03-29 05:24:35 +0000 |
commit | 4992d8bf7ddee25641e25e939f616628c64b36c3 (patch) | |
tree | b3740a4e48ba350910daefdc9df0ab2b8a4ffaad /libavformat/framehook.c | |
parent | 2f124d2af20b44917d4b85954b06fcd75137b4c2 (diff) | |
download | ffmpeg-streaming-4992d8bf7ddee25641e25e939f616628c64b36c3.zip ffmpeg-streaming-4992d8bf7ddee25641e25e939f616628c64b36c3.tar.gz |
Change the vhook code to send real timestamps to the filters instead of the
current time of day, which is useless, and which the filters could just as
easily query for themselves.
patch by Bobby Bingham, uhmmmm gmail com
Originally committed as revision 8541 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/framehook.c')
-rw-r--r-- | libavformat/framehook.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/framehook.c b/libavformat/framehook.c index 8f5ddd6..8738f80 100644 --- a/libavformat/framehook.c +++ b/libavformat/framehook.c @@ -93,11 +93,10 @@ int frame_hook_add(int argc, char *argv[]) #endif } -void frame_hook_process(AVPicture *pict, enum PixelFormat pix_fmt, int width, int height) +void frame_hook_process(AVPicture *pict, enum PixelFormat pix_fmt, int width, int height, int64_t pts) { if (first_hook) { FrameHookEntry *fhe; - int64_t pts = av_gettime(); for (fhe = first_hook; fhe; fhe = fhe->next) { fhe->Process(fhe->ctx, pict, pix_fmt, width, height, pts); |