mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/tiff: Suppress unused variable warnings
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
87a13986bc
commit
bb3c50b46d
|
@ -422,7 +422,7 @@ static void av_always_inline horizontal_fill(TiffContext *s,
|
||||||
uint8_t shift = is_dng ? 0 : 16 - bpp;
|
uint8_t shift = is_dng ? 0 : 16 - bpp;
|
||||||
GetBitContext gb;
|
GetBitContext gb;
|
||||||
|
|
||||||
int ret = init_get_bits8(&gb, src, width);
|
av_unused int ret = init_get_bits8(&gb, src, width);
|
||||||
av_assert1(ret >= 0);
|
av_assert1(ret >= 0);
|
||||||
for (int i = 0; i < s->width; i++) {
|
for (int i = 0; i < s->width; i++) {
|
||||||
dst16[i] = get_bits(&gb, bpp) << shift;
|
dst16[i] = get_bits(&gb, bpp) << shift;
|
||||||
|
@ -457,7 +457,7 @@ static void unpack_gray(TiffContext *s, AVFrame *p,
|
||||||
GetBitContext gb;
|
GetBitContext gb;
|
||||||
uint16_t *dst = (uint16_t *)(p->data[0] + lnum * p->linesize[0]);
|
uint16_t *dst = (uint16_t *)(p->data[0] + lnum * p->linesize[0]);
|
||||||
|
|
||||||
int ret = init_get_bits8(&gb, src, width);
|
av_unused int ret = init_get_bits8(&gb, src, width);
|
||||||
av_assert1(ret >= 0);
|
av_assert1(ret >= 0);
|
||||||
|
|
||||||
for (int i = 0; i < s->width; i++) {
|
for (int i = 0; i < s->width; i++) {
|
||||||
|
|
Loading…
Reference in New Issue