Skip to content

Commit

Permalink
Replace deprecated usage of avcodec_alloc_frame() with av_alloc_frame()
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Buitenhuis <[email protected]>
  • Loading branch information
dwbuiten committed Nov 18, 2013
1 parent ca741fa commit d731948
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vs/d2vsource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ void VS_CC d2vCreate(const VSMap *in, VSMap *out, void *userData, VSCore *core,
data->aligned_width = FFALIGN(data->vi.width, 16);
data->aligned_height = FFALIGN(data->vi.height, 32);

data->frame = avcodec_alloc_frame();
data->frame = av_frame_alloc();
if (!data->frame) {
vsapi->setError(out, "Cannot allocate AVFrame.");
d2vfreep(&data->d2v);
Expand Down

0 comments on commit d731948

Please sign in to comment.