--- src/ffmpeg.c.orig	2014-10-02 23:37:42.603458078 +0200
+++ src/ffmpeg.c	2014-10-02 23:44:31.976457430 +0200
@@ -263,7 +263,7 @@
   if (ffmpeg->audio_stream >= 0)
     stream_component_close(ffmpeg, ffmpeg->audio_stream);
   if (ffmpeg->ctxt) {
-    av_close_input_file(ffmpeg->ctxt);
+    avformat_close_input(ffmpeg->ctxt);
     ffmpeg->ctxt = NULL; /* safety */
   }