[Xvid-devel] [PATCH] bitstream: fix incorrect if statement usage

Peter Ross pross at xvid.org
Thu Jan 17 12:22:02 CET 2019


Patch:

[PATCH] bitstream: fix incorrect if statement usage
---
 src/bitstream/bitstream.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/bitstream/bitstream.c b/src/bitstream/bitstream.c
index e5f1520..397a2a3 100644
--- a/src/bitstream/bitstream.c
+++ b/src/bitstream/bitstream.c
@@ -860,8 +860,9 @@ BitstreamReadHeaders(Bitstream * bs,
                                dec->shape == VIDOBJLAY_SHAPE_RECTANGULAR &&
                                (coding_type == P_VOP || coding_type == I_VOP)) {

-                               if (BitstreamGetBit(bs));
+                               if (BitstreamGetBit(bs)) {
                                        DPRINTF(XVID_DEBUG_ERROR, "RRV not supported (anymore)\n");
+                               }
                        }

                        if (dec->shape != VIDOBJLAY_SHAPE_RECTANGULAR) {
-- 
2.17.1

-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)


More information about the Xvid-devel mailing list