You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
lavfi/mptestsrc: fix chroma subsampling with odd sizes.
This makes no difference in practice since w & h are hardcoded to 512.
This commit is contained in:
@@ -301,7 +301,8 @@ static int request_frame(AVFilterLink *outlink)
|
|||||||
{
|
{
|
||||||
MPTestContext *test = outlink->src->priv;
|
MPTestContext *test = outlink->src->priv;
|
||||||
AVFrame *picref;
|
AVFrame *picref;
|
||||||
int w = WIDTH, h = HEIGHT, cw = w>>test->hsub, ch = h>>test->vsub;
|
int w = WIDTH, h = HEIGHT,
|
||||||
|
cw = FF_CEIL_RSHIFT(w, test->hsub), ch = FF_CEIL_RSHIFT(h, test->vsub);
|
||||||
unsigned int frame = test->frame_nb;
|
unsigned int frame = test->frame_nb;
|
||||||
enum test_type tt = test->test;
|
enum test_type tt = test->test;
|
||||||
int i;
|
int i;
|
||||||
|
Reference in New Issue
Block a user