X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavfilter%2Fvsrc_testsrc.c;h=c4a5ae37422eae7c2a6dd1fcaad953690e5ec211;hb=be6f6fce2e4821f39014aae93957e5b4b87d7554;hp=422f6d8c54e89faef21501fd2dd3cb4f39630fd9;hpb=f5fdf355af2959428a2f2a73add70ccc855eba4b;p=ffmpeg diff --git a/libavfilter/vsrc_testsrc.c b/libavfilter/vsrc_testsrc.c index 422f6d8c54e..c4a5ae37422 100644 --- a/libavfilter/vsrc_testsrc.c +++ b/libavfilter/vsrc_testsrc.c @@ -1376,7 +1376,7 @@ static void smptebars_fill_picture(AVFilterContext *ctx, AVFrame *picref) int r_w, r_h, w_h, p_w, p_h, i, tmp, x = 0; const AVPixFmtDescriptor *pixdesc = av_pix_fmt_desc_get(picref->format); - av_frame_set_colorspace(picref, AVCOL_SPC_BT470BG); + picref->colorspace = AVCOL_SPC_BT470BG; r_w = FFALIGN((test->w + 6) / 7, 1 << pixdesc->log2_chroma_w); r_h = FFALIGN(test->h * 2 / 3, 1 << pixdesc->log2_chroma_h); @@ -1443,7 +1443,7 @@ static void smptehdbars_fill_picture(AVFilterContext *ctx, AVFrame *picref) int d_w, r_w, r_h, l_w, i, tmp, x = 0, y = 0; const AVPixFmtDescriptor *pixdesc = av_pix_fmt_desc_get(picref->format); - av_frame_set_colorspace(picref, AVCOL_SPC_BT709); + picref->colorspace = AVCOL_SPC_BT709; d_w = FFALIGN(test->w / 8, 1 << pixdesc->log2_chroma_w); r_h = FFALIGN(test->h * 7 / 12, 1 << pixdesc->log2_chroma_h);