diff options
author | Jérôme Martinez <jerome@mediaarea.net> | 2018-02-14 08:39:15 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2018-02-15 04:35:23 +0100 |
commit | fb580731c1febec44e0f1ec1433f6b3ee89cfe65 (patch) | |
tree | dd3e351b738f2ec5dc0f46bd71560ddaa6f9557c /libavcodec/ffv1enc_template.c | |
parent | aa6280805e21e1e2c3fb7bb1efb47a27ceeb3fed (diff) | |
download | ffmpeg-fb580731c1febec44e0f1ec1433f6b3ee89cfe65.tar.gz |
avcodec/ffv1: Support for GBRAP10 and GBRAP12
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/ffv1enc_template.c')
-rw-r--r-- | libavcodec/ffv1enc_template.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ffv1enc_template.c b/libavcodec/ffv1enc_template.c index b93336538b..bc0add5ed7 100644 --- a/libavcodec/ffv1enc_template.c +++ b/libavcodec/ffv1enc_template.c @@ -160,7 +160,7 @@ static int RENAME(encode_rgb_frame)(FFV1Context *s, const uint8_t *src[4], b = p[2]; if (transparency) a = p[3]; - } else if (sizeof(TYPE) == 4) { + } else if (sizeof(TYPE) == 4 || transparency) { g = *((const uint16_t *)(src[0] + x*2 + stride[0]*y)); b = *((const uint16_t *)(src[1] + x*2 + stride[1]*y)); r = *((const uint16_t *)(src[2] + x*2 + stride[2]*y)); |