Commit 50a0a167 authored by Alexander Alekhin's avatar Alexander Alekhin

fix ffmpeg frame creation (fix #5439)

parent e2e25e9a
......@@ -1130,6 +1130,11 @@ static AVFrame * icv_alloc_picture_FFMPEG(int pix_fmt, int width, int height, bo
#endif
if (!picture)
return NULL;
picture->format = pix_fmt;
picture->width = width;
picture->height = height;
size = avpicture_get_size( (AVPixelFormat) pix_fmt, width, height);
if(alloc){
picture_buf = (uint8_t *) malloc(size);
......
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