Skip to content

Commit d731948

Browse files
committed
Replace deprecated usage of avcodec_alloc_frame() with av_alloc_frame()
Signed-off-by: Derek Buitenhuis <[email protected]>
1 parent ca741fa commit d731948

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vs/d2vsource.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ void VS_CC d2vCreate(const VSMap *in, VSMap *out, void *userData, VSCore *core,
142142
data->aligned_width = FFALIGN(data->vi.width, 16);
143143
data->aligned_height = FFALIGN(data->vi.height, 32);
144144

145-
data->frame = avcodec_alloc_frame();
145+
data->frame = av_frame_alloc();
146146
if (!data->frame) {
147147
vsapi->setError(out, "Cannot allocate AVFrame.");
148148
d2vfreep(&data->d2v);

0 commit comments

Comments
 (0)