comparison tiff.c @ 5962:a6c9aa23d379 libavcodec

TIFF may omit compression tag. This fixes issue 276.
author kostya
date Sat, 01 Dec 2007 15:41:35 +0000
parents d6957da94689
children e7c178d397ea
comparison
equal deleted inserted replaced
5961:74e314bb31c4 5962:a6c9aa23d379
420 av_log(avctx, AV_LOG_ERROR, "TIFF header not found\n"); 420 av_log(avctx, AV_LOG_ERROR, "TIFF header not found\n");
421 return -1; 421 return -1;
422 } 422 }
423 s->le = le; 423 s->le = le;
424 s->invert = 0; 424 s->invert = 0;
425 s->compr = TIFF_RAW;
425 // As TIFF 6.0 specification puts it "An arbitrary but carefully chosen number 426 // As TIFF 6.0 specification puts it "An arbitrary but carefully chosen number
426 // that further identifies the file as a TIFF file" 427 // that further identifies the file as a TIFF file"
427 if(tget_short(&buf, le) != 42){ 428 if(tget_short(&buf, le) != 42){
428 av_log(avctx, AV_LOG_ERROR, "The answer to life, universe and everything is not correct!\n"); 429 av_log(avctx, AV_LOG_ERROR, "The answer to life, universe and everything is not correct!\n");
429 return -1; 430 return -1;