diff options
author | Philip Gladstone <philipjsg@users.sourceforge.net> | 2002-11-30 17:17:58 +0000 |
---|---|---|
committer | Philip Gladstone <philipjsg@users.sourceforge.net> | 2002-11-30 17:17:58 +0000 |
commit | 6c11d48cabf127d254620a110e1deaa952b7f8f7 (patch) | |
tree | a747ddcea7d13a5d7e37456725bf73e2701e9c0f /vhook/fish.c | |
parent | 042f24652e09afe9bc7d865fa0af29855ea9dae9 (diff) | |
download | ffmpeg-6c11d48cabf127d254620a110e1deaa952b7f8f7.tar.gz |
Added a release function to free up the context. Also removed the dummy
declarations at the bottom of the file. This type checking is now handled by the
header file.
Originally committed as revision 1295 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'vhook/fish.c')
-rw-r--r-- | vhook/fish.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/vhook/fish.c b/vhook/fish.c index 86ae1a474b..2de265feb1 100644 --- a/vhook/fish.c +++ b/vhook/fish.c @@ -82,6 +82,11 @@ static void dorange(const char *s, int *first, int *second, int maxval) *second = maxval; } +void Release(void *ctx) +{ + if (ctx) + av_free(ctx); +} int Configure(void **ctxp, int argc, char *argv[]) { @@ -325,6 +330,3 @@ void Process(void *ctx, AVPicture *picture, enum PixelFormat pix_fmt, int width, } } -/* To ensure correct typing */ -FrameHookConfigureFn ConfigureFn = Configure; -FrameHookProcessFn ProcessFn = Process; |