Mercurial > libavformat.hg
comparison framehook.c @ 1960:c0289552590f libavformat
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
author | diego |
---|---|
date | Thu, 29 Mar 2007 05:24:35 +0000 |
parents | eb16c64144ee |
children | ffb5d8bb96b3 |
comparison
equal
deleted
inserted
replaced
1959:4e7e64bb5d3c | 1960:c0289552590f |
---|---|
91 av_log(NULL, AV_LOG_ERROR, "Video hooking not compiled into this version\n"); | 91 av_log(NULL, AV_LOG_ERROR, "Video hooking not compiled into this version\n"); |
92 return 1; | 92 return 1; |
93 #endif | 93 #endif |
94 } | 94 } |
95 | 95 |
96 void frame_hook_process(AVPicture *pict, enum PixelFormat pix_fmt, int width, int height) | 96 void frame_hook_process(AVPicture *pict, enum PixelFormat pix_fmt, int width, int height, int64_t pts) |
97 { | 97 { |
98 if (first_hook) { | 98 if (first_hook) { |
99 FrameHookEntry *fhe; | 99 FrameHookEntry *fhe; |
100 int64_t pts = av_gettime(); | |
101 | 100 |
102 for (fhe = first_hook; fhe; fhe = fhe->next) { | 101 for (fhe = first_hook; fhe; fhe = fhe->next) { |
103 fhe->Process(fhe->ctx, pict, pix_fmt, width, height, pts); | 102 fhe->Process(fhe->ctx, pict, pix_fmt, width, height, pts); |
104 } | 103 } |
105 } | 104 } |