ff-save: use av_frame_alloc instead of avcodec_alloc_frame

parent 6870b6ac
...@@ -524,7 +524,7 @@ alloc_picture (int pix_fmt, int width, int height) ...@@ -524,7 +524,7 @@ alloc_picture (int pix_fmt, int width, int height)
uint8_t *picture_buf; uint8_t *picture_buf;
int size; int size;
picture = avcodec_alloc_frame (); picture = av_frame_alloc ();
if (!picture) if (!picture)
return NULL; return NULL;
size = avpicture_get_size (pix_fmt, width, height + 1); size = avpicture_get_size (pix_fmt, width, height + 1);
......
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