Commit fa8b91ac authored by kostya's avatar kostya

4l: TIFF stores short strings inside tag, do not interpret it is as an offset

Fixes issue 753
-This line, and those below, will be ignored--

M    libavcodec/tiff.c


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16189 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent f7d37c31
...@@ -176,6 +176,11 @@ static int tiff_decode_tag(TiffContext *s, const uint8_t *start, const uint8_t * ...@@ -176,6 +176,11 @@ static int tiff_decode_tag(TiffContext *s, const uint8_t *start, const uint8_t *
value = off; value = off;
buf = NULL; buf = NULL;
break; break;
case TIFF_STRING:
if(count <= 4){
buf -= 4;
break;
}
default: default:
value = -1; value = -1;
buf = start + off; buf = start + off;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment