diff options
author | James Almer <jamrial@gmail.com> | 2017-02-21 20:21:52 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-02-21 20:21:52 -0300 |
commit | d04e0a6bcffed7b4a0a90ae25fb21466561762df (patch) | |
tree | aac69a709996b8dd0834ed58f970aa9a319861f8 /libavcodec/qdrw.c | |
parent | dde1bf074ca6147893d1dbf4216848b7e455a9a9 (diff) | |
download | ffmpeg-d04e0a6bcffed7b4a0a90ae25fb21466561762df.tar.gz |
avcodec/qdrw: don't overwrite bpp when checking its value
Finishes fixing ticket #6171
Diffstat (limited to 'libavcodec/qdrw.c')
-rw-r--r-- | libavcodec/qdrw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/qdrw.c b/libavcodec/qdrw.c index 41da4afc41..e3d69c226d 100644 --- a/libavcodec/qdrw.c +++ b/libavcodec/qdrw.c @@ -405,9 +405,9 @@ static int decode_frame(AVCodecContext *avctx, if (avctx->pix_fmt == AV_PIX_FMT_RGB555) ret = decode_rle16(avctx, p, &gbc); - else if (bpp = 2) + else if (bpp == 2) ret = decode_rle_bpp2(avctx, p, &gbc); - else if (bpp = 4) + else if (bpp == 4) ret = decode_rle_bpp4(avctx, p, &gbc); else ret = decode_rle(avctx, p, &gbc, bppcnt); |