mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-28 05:50:43 +00:00
lavfi/moviesrc: use refcounted frames
This commit is contained in:
parent
0fc01ae33c
commit
c69acbf881
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user