aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Converse <alex.converse@gmail.com>2011-11-07 10:14:54 -0800
committerAlex Converse <alex.converse@gmail.com>2011-11-08 10:59:52 -0800
commit735e601be1b7731d256a41e942b31a96255a6bec (patch)
treeae92cbe6010a480881815f5af9cfb49a6daea2c1
parent3110ad8329c39d1512eea86db617fa339ba5d076 (diff)
downloadffmpeg-735e601be1b7731d256a41e942b31a96255a6bec.tar.gz
mxfdec: Fix comparison of unsigned expression < 0.
'size' is populated by functions returning int64_t and int that return negative error codes.
-rw-r--r--libavformat/mxfdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c
index c0386583bd..95699a614e 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];