X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavfilter%2Fvsrc_testsrc.c;h=c4a5ae37422eae7c2a6dd1fcaad953690e5ec211;hb=6fdd35a3126f6ecbe4ebab12bdf8867e4f544958;hp=422f6d8c54e89faef21501fd2dd3cb4f39630fd9;hpb=b2798267c5507df594babca9ff0e8ba36bf0a342;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);