diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-01-25 23:09:59 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-01-25 23:34:36 +0100 |
commit | c6ef7641fc123ba68e391c572b39fea8135030fb (patch) | |
tree | 278132d0a453c53e0c74cf3aba36ca932551b5ba /libavcodec/ffv1enc.c | |
parent | e80be5a0aa9f9b0d66c2d620f40578ac8ae8de11 (diff) | |
download | ffmpeg-streaming-c6ef7641fc123ba68e391c572b39fea8135030fb.zip ffmpeg-streaming-c6ef7641fc123ba68e391c572b39fea8135030fb.tar.gz |
ffv1enc: fix gbrp>8bit
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/ffv1enc.c')
-rw-r--r-- | libavcodec/ffv1enc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/ffv1enc.c b/libavcodec/ffv1enc.c index bdb7ccb..78beb9a 100644 --- a/libavcodec/ffv1enc.c +++ b/libavcodec/ffv1enc.c @@ -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; |