ffv1enc: fix gbrp>8bit
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
e80be5a0aa
commit
c6ef7641fc
1 changed files with 2 additions and 2 deletions
|
|
@ -395,8 +395,8 @@ static void encode_rgb_frame(FFV1Context *s, uint8_t *src[3], int w, int h, int
|
|||
int x, y, p, i;
|
||||
const int ring_size = s->avctx->context_model ? 3 : 2;
|
||||
int16_t *sample[4][3];
|
||||
int lbd = s->avctx->bits_per_raw_sample <= 8;
|
||||
int bits = s->avctx->bits_per_raw_sample > 0 ? s->avctx->bits_per_raw_sample : 8;
|
||||
int lbd = s->bits_per_raw_sample <= 8;
|
||||
int bits = s->bits_per_raw_sample > 0 ? s->bits_per_raw_sample : 8;
|
||||
int offset = 1 << bits;
|
||||
|
||||
s->run_index = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue