Commit c69acbf8 authored by Hendrik Leppkes's avatar Hendrik Leppkes Committed by Michael Niedermayer

lavfi/moviesrc: use refcounted frames

parent 0fc01ae3
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment