[FFmpeg-cvslog] avcodec/qdrw: don't overwrite bpp when checking its value
James Almer
git at videolan.org
Wed Feb 22 01:22:24 EET 2017
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Tue Feb 21 20:21:52 2017 -0300| [d04e0a6bcffed7b4a0a90ae25fb21466561762df] | committer: James Almer
avcodec/qdrw: don't overwrite bpp when checking its value
Finishes fixing ticket #6171
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d04e0a6bcffed7b4a0a90ae25fb21466561762df
---
libavcodec/qdrw.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/qdrw.c b/libavcodec/qdrw.c
index 41da4af..e3d69c2 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);
More information about the ffmpeg-cvslog
mailing list