]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/xsubenc.c
Fix compilation with old yasm.
[ffmpeg] / libavcodec / xsubenc.c
index c448a2271cd89fef2638ca020c45a420f49c2867..a7e3a891d4f41da1128d11295815acc48a670104 100644 (file)
@@ -129,7 +129,7 @@ static int xsub_encode(AVCodecContext *avctx, unsigned char *buf,
     }
 
     // TODO: support multiple rects
-    if (h->num_rects > 1)
+    if (h->num_rects != 1)
         av_log(avctx, AV_LOG_WARNING, "Only single rects supported (%d in subtitle.)\n", h->num_rects);
 
     // TODO: render text-based subtitles into bitmaps