[FFmpeg-cvslog] avcodec/rpza: fix +- error

Michael Niedermayer git at videolan.org
Sun Aug 17 14:43:08 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Aug 17 14:30:32 2014 +0200| [b6c9266722d7732784930bb5728986e022257958] | committer: Michael Niedermayer

avcodec/rpza: fix +- error

Fixes Ticket3471

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b6c9266722d7732784930bb5728986e022257958
---

 libavcodec/rpza.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/rpza.c b/libavcodec/rpza.c
index 9509d30..23e2a75 100644
--- a/libavcodec/rpza.c
+++ b/libavcodec/rpza.c
@@ -94,11 +94,11 @@ static void rpza_decode_stream(RpzaContext *s)
     chunk_size = bytestream2_get_be32(&s->gb) & 0x00FFFFFF;
 
     /* If length mismatch use size from MOV file and try to decode anyway */
-    if (chunk_size != bytestream2_get_bytes_left(&s->gb) - 4)
+    if (chunk_size != bytestream2_get_bytes_left(&s->gb) + 4)
         av_log(s->avctx, AV_LOG_WARNING,
                "MOV chunk size %d != encoded chunk size %d\n",
                chunk_size,
-               bytestream2_get_bytes_left(&s->gb) - 4
+               bytestream2_get_bytes_left(&s->gb) + 4
               );
 
     /* Number of 4x4 blocks in frame. */



More information about the ffmpeg-cvslog mailing list