]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/truemotion2.c
Merge commit 'cb49bb10ca7fcff2e382d9d989232b1a7f28e7da'
[ffmpeg] / libavcodec / truemotion2.c
index 75373a095b993382185d100d6bdd51b89de6ee93..7912d3909e8055f97956e1a35cb7d3882d21904e 100644 (file)
@@ -303,8 +303,8 @@ static int tm2_read_stream(TM2Context *ctx, const uint8_t *buf, int stream_id, i
     if (len == 0)
         return 4;
 
-    if (len >= INT_MAX/4-1 || len < 0 || skip > buf_size) {
-        av_log(ctx->avctx, AV_LOG_ERROR, "invalid stream size\n");
+    if (len >= INT_MAX / 4 - 1 || len < 0 || skip > buf_size) {
+        av_log(ctx->avctx, AV_LOG_ERROR, "Error, invalid stream size.\n");
         return AVERROR_INVALIDDATA;
     }