summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Klemkow <j.klemkow@wemelug.de>2012-11-13 23:33:27 +0100
committerJan Klemkow <j.klemkow@wemelug.de>2012-11-13 23:33:27 +0100
commitce0046e75118767ffc0e87495659a6c8145e92d5 (patch)
treea790e5b9815869d951ac8ee366054cf277443a65 /src
parentc57496507be0f17bcee37c523da196eae547fdf0 (diff)
downloadadvtime-ce0046e75118767ffc0e87495659a6c8145e92d5.tar.gz
advtime-ce0046e75118767ffc0e87495659a6c8145e92d5.tar.bz2
advtime-ce0046e75118767ffc0e87495659a6c8145e92d5.zip
Build works an OpenBSD.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile2
-rw-r--r--src/decode_frame.c3
-rw-r--r--src/video_decode.c3
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);
}