[FFmpeg-devel] framepool width and potential patch for bug 9873

2022-08-20 Thread Brendan Hack
Hi, I reported https://trac.ffmpeg.org/ticket/9873 last week and have since been digging into the code to see if I can get a patch together. I've found the underlying issue in ff_frame_pool_video_init at line 77 of libavfilter/framepool.c:     ret = av_image_fill_linesizes(pool->linesize

[FFmpeg-devel] [PATCH] avfilter/vf_frei0r: set align to 1 for frei0r frames

2022-08-24 Thread Brendan Hack
The frei0r API requires linesize to be width * 4. Since the align property of ff_default_get_video_buffer2 specifies line alignment, not buffer alignment, the previous value of 16 breaks this requirement for frames whose width is a multiple of 8, but not a multiple of 16 as it adds extra padding to