aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorBobby Bingham <uhmmmm@gmail.com>2007-03-29 05:24:35 +0000
committerDiego Biurrun <diego@biurrun.de>2007-03-29 05:24:35 +0000
commit4992d8bf7ddee25641e25e939f616628c64b36c3 (patch)
treeb3740a4e48ba350910daefdc9df0ab2b8a4ffaad /ffmpeg.c
parent2f124d2af20b44917d4b85954b06fcd75137b4c2 (diff)
downloadffmpeg-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 'ffmpeg.c')
-rw-r--r--ffmpeg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 3f12c1f089..1a17d4f172 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -601,7 +601,8 @@ static void pre_process_video_frame(AVInputStream *ist, AVPicture *picture, void
picture2 = picture;
}
- frame_hook_process(picture2, dec->pix_fmt, dec->width, dec->height);
+ frame_hook_process(picture2, dec->pix_fmt, dec->width, dec->height,
+ 1000000 * ist->pts / AV_TIME_BASE);
if (picture != picture2)
*picture = *picture2;