Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-10-27 16:10:06 +0400
committerMichael Niedermayer <michaelni@gmx.at>2013-10-27 16:10:38 +0400
commit46143d2555894ca1d5ef3c6e4446fb8f9cea0814 (patch)
tree00cafb2641d802cf8756b8f37911b574dee8c4a0 /libavcodec/tiff.c
parentd5ad4e4a2f120b7390a86c99dcaefe1dd84f3f28 (diff)
avcodec/tiff: factorize offset init code
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/tiff.c')
-rw-r--r--libavcodec/tiff.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c
index e8c99507d7..2b100ede5e 100644
--- a/libavcodec/tiff.c
+++ b/libavcodec/tiff.c
@@ -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) {