From ce0046e75118767ffc0e87495659a6c8145e92d5 Mon Sep 17 00:00:00 2001 From: Jan Klemkow Date: Tue, 13 Nov 2012 23:33:27 +0100 Subject: Build works an OpenBSD. --- src/Makefile | 2 +- src/decode_frame.c | 3 ++- src/video_decode.c | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Makefile b/src/Makefile index fbdb424..0cd8c91 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,6 +1,6 @@ CFLAGS=-std=c99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-unused-parameter LibAV=`pkg-config --cflags --libs libavcodec` -LIBAV_DECODE_FLAGS=$(shell pkg-config --libs --cflags libavformat libavcodec libavutil libswscale) +LIBAV_DECODE_FLAGS=`pkg-config --libs --cflags libavformat libavcodec libavutil libswscale` all: advtime decode_frame frame_to_pgm diff --git a/src/decode_frame.c b/src/decode_frame.c index 717e81c..045207b 100644 --- a/src/decode_frame.c +++ b/src/decode_frame.c @@ -174,7 +174,8 @@ main(int argc, char *argv[]) av_free(frame_rgb); av_free(frame); avcodec_close(codec_ctx); - avformat_close_input(&fmt_ctx); + av_close_input_file(&fmt_ctx); +// avformat_close_input(&fmt_ctx); return 0; } diff --git a/src/video_decode.c b/src/video_decode.c index 87d3483..3b9da04 100644 --- a/src/video_decode.c +++ b/src/video_decode.c @@ -82,7 +82,8 @@ video_decode_uninit(struct video_decode **_vd) *_vd = NULL; avcodec_close(vd->codec_ctx); - avformat_close_input(&vd->fmt_ctx); + av_close_input_file(&vd->fmt_ctx); +// avformat_close_input(&vd->fmt_ctx); free(vd); } -- cgit