lavfi/moviesrc: use refcounted frames
authorHendrik Leppkes <h.leppkes@gmail.com>
Mon, 11 Mar 2013 22:28:56 +0000 (23:28 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 12 Mar 2013 02:23:57 +0000 (03:23 +0100)
libavfilter/src_movie.c

index 75c201c..decbc0f 100644 (file)
@@ -153,6 +153,8 @@ static int open_stream(void *log, MovieStream *st)
         return AVERROR(EINVAL);
     }
 
+    st->st->codec->refcounted_frames = 1;
+
     if ((ret = avcodec_open2(st->st->codec, codec, NULL)) < 0) {
         av_log(log, AV_LOG_ERROR, "Failed to open codec\n");
         return ret;