|
|
@ -71,8 +71,10 @@ AVFrame *ff_default_get_video_buffer2(AVFilterLink *link, int w, int h, int alig |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (!li->frame_pool) { |
|
|
|
if (!li->frame_pool) { |
|
|
|
li->frame_pool = ff_frame_pool_video_init(av_buffer_allocz, w, h, |
|
|
|
li->frame_pool = ff_frame_pool_video_init(CONFIG_MEMORY_POISONING |
|
|
|
link->format, align); |
|
|
|
? NULL |
|
|
|
|
|
|
|
: av_buffer_allocz, |
|
|
|
|
|
|
|
w, h, link->format, align); |
|
|
|
if (!li->frame_pool) |
|
|
|
if (!li->frame_pool) |
|
|
|
return NULL; |
|
|
|
return NULL; |
|
|
|
} else { |
|
|
|
} else { |
|
|
@ -86,8 +88,10 @@ AVFrame *ff_default_get_video_buffer2(AVFilterLink *link, int w, int h, int alig |
|
|
|
pool_format != link->format || pool_align != align) { |
|
|
|
pool_format != link->format || pool_align != align) { |
|
|
|
|
|
|
|
|
|
|
|
ff_frame_pool_uninit(&li->frame_pool); |
|
|
|
ff_frame_pool_uninit(&li->frame_pool); |
|
|
|
li->frame_pool = ff_frame_pool_video_init(av_buffer_allocz, w, h, |
|
|
|
li->frame_pool = ff_frame_pool_video_init(CONFIG_MEMORY_POISONING |
|
|
|
link->format, align); |
|
|
|
? NULL |
|
|
|
|
|
|
|
: av_buffer_allocz, |
|
|
|
|
|
|
|
w, h, link->format, align); |
|
|
|
if (!li->frame_pool) |
|
|
|
if (!li->frame_pool) |
|
|
|
return NULL; |
|
|
|
return NULL; |
|
|
|
} |
|
|
|
} |
|
|
|