aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale/swscale.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-01-10 17:23:04 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-01-10 17:26:39 +0100
commitab9d7e0b120c9b940ddc490dab7805758580ba0e (patch)
treed889919ff407de76f464f02bd7ad6ea63e7a216b /libswscale/swscale.c
parente1d8ef4c21f6f08ba6b7b07ba9f1856e871659f4 (diff)
downloadffmpeg-ab9d7e0b120c9b940ddc490dab7805758580ba0e.tar.gz
swscale: fix rgb48Toxyz12() endianness
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswscale/swscale.c')
-rw-r--r--libswscale/swscale.c2
1 files changed, 1 insertions, 1 deletions
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<h; yp++) {
for (xp=0; xp+2<stride; xp+=3) {