changeset 4184:cfaa5d84641e libavcodec

Warn about JPEG in TIFF
author kostya
date Mon, 13 Nov 2006 05:29:45 +0000
parents c70922cdf2ee
children 7120f779d313
files tiff.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tiff.c	Mon Nov 13 05:28:55 2006 +0000
+++ b/tiff.c	Mon Nov 13 05:29:45 2006 +0000
@@ -282,6 +282,10 @@
         case TIFF_CCITT_RLE:
             av_log(s->avctx, AV_LOG_ERROR, "CCITT RLE compression is not supported\n");
             return -1;
+        case TIFF_JPEG:
+        case TIFF_NEWJPEG:
+            av_log(s->avctx, AV_LOG_ERROR, "JPEG compression is not supported\n");
+            return -1;
         default:
             av_log(s->avctx, AV_LOG_ERROR, "Unknown compression method %i\n", s->compr);
             return -1;