X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavfilter%2Fvf_vectorscope.c;h=8c596c7a88dbe99a327e06d10fc80e6c436ee6de;hb=be6f6fce2e4821f39014aae93957e5b4b87d7554;hp=987bc66bd49a04a20e1fb52c497ae779283927fd;hpb=f98ccbd6a06deafadcb4b52bd4634f733544297a;p=ffmpeg diff --git a/libavfilter/vf_vectorscope.c b/libavfilter/vf_vectorscope.c index 987bc66bd49..8c596c7a88d 100644 --- a/libavfilter/vf_vectorscope.c +++ b/libavfilter/vf_vectorscope.c @@ -1212,7 +1212,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) if (s->colorspace) { s->cs = (s->depth - 8) * 2 + s->colorspace - 1; } else { - switch (av_frame_get_colorspace(in)) { + switch (in->colorspace) { case AVCOL_SPC_SMPTE170M: case AVCOL_SPC_BT470BG: s->cs = (s->depth - 8) * 2 + 0;