mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-28 02:12:28 +00:00
avcodec/tiff: Replace width overriding for bayer by assert
This is less confusing Reviewed-by: Nick Renieris <velocityra@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
071e223129
commit
f1ab6962ca
@ -589,7 +589,7 @@ static int tiff_unpack_strip(TiffContext *s, AVFrame *p, uint8_t *dst, int strid
|
||||
av_assert0(s->bpp == 24);
|
||||
}
|
||||
if (s->is_bayer) {
|
||||
width = (s->bpp * s->width + 7) >> 3;
|
||||
av_assert0(width == (s->bpp * s->width + 7) >> 3);
|
||||
}
|
||||
if (p->format == AV_PIX_FMT_GRAY12) {
|
||||
av_fast_padded_malloc(&s->yuv_line, &s->yuv_line_size, width);
|
||||
|
Loading…
Reference in New Issue
Block a user