diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-11-17 23:29:00 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-11-18 18:04:28 +0100 |
commit | d1d18de6ade3ad5690f1eba9e005bab797d94ac6 (patch) | |
tree | 5f5822c000cd20c00a06946b03d875ccc233a6fb /libavcodec/ffv1dec.c | |
parent | d7a3bb2088679623db70eaa432e7e3563cbd561d (diff) | |
download | ffmpeg-d1d18de6ade3ad5690f1eba9e005bab797d94ac6.tar.gz |
avcodec/ffv1dec: Set packed_at_lsb for 16bit YUV
This avoids unneeded computations
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/ffv1dec.c')
-rw-r--r-- | libavcodec/ffv1dec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/ffv1dec.c b/libavcodec/ffv1dec.c index b5fb825102..358da1701f 100644 --- a/libavcodec/ffv1dec.c +++ b/libavcodec/ffv1dec.c @@ -637,12 +637,14 @@ static int read_header(FFV1Context *f) case 0x11: f->avctx->pix_fmt = AV_PIX_FMT_YUVA420P10; break; } } else if (f->avctx->bits_per_raw_sample == 16 && !f->transparency){ + f->packed_at_lsb = 1; switch(16 * f->chroma_h_shift + f->chroma_v_shift) { case 0x00: f->avctx->pix_fmt = AV_PIX_FMT_YUV444P16; break; case 0x10: f->avctx->pix_fmt = AV_PIX_FMT_YUV422P16; break; case 0x11: f->avctx->pix_fmt = AV_PIX_FMT_YUV420P16; break; } } else if (f->avctx->bits_per_raw_sample == 16 && f->transparency){ + f->packed_at_lsb = 1; switch(16 * f->chroma_h_shift + f->chroma_v_shift) { case 0x00: f->avctx->pix_fmt = AV_PIX_FMT_YUVA444P16; break; case 0x10: f->avctx->pix_fmt = AV_PIX_FMT_YUVA422P16; break; |