summaryrefslogtreecommitdiff
path: root/libavformat/avisynth.c
diff options
context:
space:
mode:
authorStephen Hutchinson <qyot27@gmail.com>2022-04-23 16:07:39 -0400
committerStephen Hutchinson <qyot27@gmail.com>2022-08-12 17:21:44 -0400
commitf6a36c7cf90dc71400c4a1ba0f5c5e8fbbf6d1bf (patch)
tree00f3f95ed600c3faa1bd116d4b49ef8f87ae61ed /libavformat/avisynth.c
parentc1b966a189f3ffef8bd48d744e644f573a218608 (diff)
avformat/avisynth: add missing avs_release_video_frame
The AviSynth C API requires using avs_release_video_frame whenever avs_get_frame has been used, but the recent addition of frameprop reading to the demuxer was missing this in avisynth_create_stream_video. Signed-off-by: Stephen Hutchinson <qyot27@gmail.com>
Diffstat (limited to 'libavformat/avisynth.c')
-rw-r--r--libavformat/avisynth.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/avisynth.c b/libavformat/avisynth.c
index 52b926b636..3d9fa2be50 100644
--- a/libavformat/avisynth.c
+++ b/libavformat/avisynth.c
@@ -728,6 +728,7 @@ static int avisynth_create_stream_video(AVFormatContext *s, AVStream *st)
st->codecpar->chroma_location = AVCHROMA_LOC_UNSPECIFIED;
}
}
+ avs_library.avs_release_video_frame(frame);
} else {
st->codecpar->field_order = AV_FIELD_UNKNOWN;
/* AviSynth works with frame-based video, detecting field order can