[FFmpeg-cvslog] lavfi/moviesrc: use refcounted frames

Hendrik Leppkes git at videolan.org
Tue Mar 12 03:31:01 CET 2013


ffmpeg | branch: master | Hendrik Leppkes <h.leppkes at gmail.com> | Mon Mar 11 23:28:56 2013 +0100| [c69acbf8813e3ef806847777e878ff1962e5c72a] | committer: Michael Niedermayer

lavfi/moviesrc: use refcounted frames

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c69acbf8813e3ef806847777e878ff1962e5c72a
---

 libavfilter/src_movie.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavfilter/src_movie.c b/libavfilter/src_movie.c
index 75c201c..decbc0f 100644
--- a/libavfilter/src_movie.c
+++ b/libavfilter/src_movie.c
@@ -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;



More information about the ffmpeg-cvslog mailing list