[FFmpeg-cvslog] mxfdec: Fix comparison of unsigned expression < 0.

Alex Converse git at videolan.org
Wed Nov 9 03:31:06 CET 2011


ffmpeg | branch: master | Alex Converse <alex.converse at gmail.com> | Mon Nov  7 10:14:54 2011 -0800| [735e601be1b7731d256a41e942b31a96255a6bec] | committer: Alex Converse

mxfdec: Fix comparison of unsigned expression < 0.

'size' is populated by functions returning int64_t and int that return
negative error codes.

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

 libavformat/mxfdec.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c
index c038658..95699a6 100644
--- a/libavformat/mxfdec.c
+++ b/libavformat/mxfdec.c
@@ -251,7 +251,7 @@ static int mxf_decrypt_triplet(AVFormatContext *s, AVPacket *pkt, KLVPacket *klv
     MXFContext *mxf = s->priv_data;
     AVIOContext *pb = s->pb;
     int64_t end = avio_tell(pb) + klv->length;
-    uint64_t size;
+    int64_t size;
     uint64_t orig_size;
     uint64_t plaintext_size;
     uint8_t ivec[16];



More information about the ffmpeg-cvslog mailing list