diff options
-rw-r--r-- | src/Makefile | 2 | ||||
-rw-r--r-- | src/decode_frame.c | 3 | ||||
-rw-r--r-- | 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); } |