diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-10-27 13:10:06 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-10-27 13:10:38 +0100 |
commit | 46143d2555894ca1d5ef3c6e4446fb8f9cea0814 (patch) | |
tree | 00cafb2641d802cf8756b8f37911b574dee8c4a0 /libavcodec | |
parent | d5ad4e4a2f120b7390a86c99dcaefe1dd84f3f28 (diff) | |
download | ffmpeg-streaming-46143d2555894ca1d5ef3c6e4446fb8f9cea0814.zip ffmpeg-streaming-46143d2555894ca1d5ef3c6e4446fb8f9cea0814.tar.gz |
avcodec/tiff: factorize offset init code
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/tiff.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c index e8c9950..2b100ed 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) { |