diff --git a/libswscale/swscale.c b/libswscale/swscale.c index 710dce3330..1d623e77a2 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -854,7 +854,7 @@ static void rgb48Toxyz12(struct SwsContext *c, uint16_t *dst, const uint16_t *src, int stride, int h) { int xp,yp; - const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(c->srcFormat); + const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(c->dstFormat); for (yp=0; yp