diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2013-03-11 23:28:56 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-03-12 03:23:57 +0100 |
commit | c69acbf8813e3ef806847777e878ff1962e5c72a (patch) | |
tree | 016434bb0755bf9e80332ecafca39d5d4b37e342 /libavfilter | |
parent | 0fc01ae33c7712168aab0f98c5715b40da0b5f03 (diff) | |
download | ffmpeg-c69acbf8813e3ef806847777e878ff1962e5c72a.tar.gz |
lavfi/moviesrc: use refcounted frames
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/src_movie.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/src_movie.c b/libavfilter/src_movie.c index 75c201cd46..decbc0f1c5 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; |