mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-08-18 15:25:05 +02:00
avcodec/tiff: factorize offset init code
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
d5ad4e4a2f
commit
46143d2555
@ -578,6 +578,7 @@ static int tiff_decode_tag(TiffContext *s, AVFrame *frame)
|
||||
goto end;
|
||||
}
|
||||
|
||||
off = bytestream2_tell(&s->gb);
|
||||
if (count == 1) {
|
||||
switch (type) {
|
||||
case TIFF_BYTE:
|
||||
@ -590,11 +591,8 @@ static int tiff_decode_tag(TiffContext *s, AVFrame *frame)
|
||||
break;
|
||||
}
|
||||
default:
|
||||
off = bytestream2_tell(&s->gb);
|
||||
value = UINT_MAX;
|
||||
}
|
||||
} else {
|
||||
off = bytestream2_tell(&s->gb);
|
||||
}
|
||||
|
||||
switch (tag) {
|
||||
|
Loading…
Reference in New Issue
Block a user