From 0c650711cf3e902b4424926a461fc80ecb162257 Mon Sep 17 00:00:00 2001 From: Anshul Maheshwari Date: Sat, 11 Oct 2014 14:54:02 +0530 Subject: [PATCH] corrected ffmpeg enabled build --- src/ccextractor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ccextractor.c b/src/ccextractor.c index 01a1d92c..ccfeee90 100644 --- a/src/ccextractor.c +++ b/src/ccextractor.c @@ -441,7 +441,7 @@ int main(int argc, char *argv[]) do { int ret = 0; - char *bptr = buffer; + char *bptr = ctx->buffer; memset(bptr,0,1024); int len = ff_get_ccframe(ffmpeg_ctx, bptr, 1024); if(len == AVERROR(EAGAIN)) @@ -466,7 +466,7 @@ int main(int argc, char *argv[]) } }while(1); - free(buffer); + free(ctx->buffer); continue; } else