Warn about JPEG in TIFF
authorKostya Shishkov <kostya.shishkov@gmail.com>
Mon, 13 Nov 2006 05:29:45 +0000 (05:29 +0000)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Mon, 13 Nov 2006 05:29:45 +0000 (05:29 +0000)
Originally committed as revision 7003 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/tiff.c

index ee2627c8e8ecc2f5c2b0a2f819cab14727917a55..954e40f0a22b892390f70132fb32c0afe1101cee 100644 (file)
@@ -282,6 +282,10 @@ static int tiff_decode_tag(TiffContext *s, uint8_t *start, uint8_t *buf, uint8_t
         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;