diff options
author | Paul B Mahol <onemda@gmail.com> | 2020-09-04 01:29:08 +0300 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2020-09-05 11:32:30 +0300 |
commit | a198b508e327a9a9705fb3eb5e366d7ed098ac67 (patch) | |
tree | b591d1ddf697a855470b898680cb0c67473fff2c /libavcodec/dxtory.c | |
parent | 4562d8e8d628b6acf5d6cb564ff79ecafe9efc84 (diff) |
avcodec/dxtory: add missed rgb555/rgb565 formats for vflip case
Diffstat (limited to 'libavcodec/dxtory.c')
-rw-r--r-- | libavcodec/dxtory.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/dxtory.c b/libavcodec/dxtory.c index 123833741b..e239abe233 100644 --- a/libavcodec/dxtory.c +++ b/libavcodec/dxtory.c @@ -62,6 +62,8 @@ static void do_vflip(AVCodecContext *avctx, AVFrame *pic, int vflip) pic->linesize[1] = -pic->linesize[1]; pic->data[2] += (avctx->height - 1) * pic->linesize[2]; pic->linesize[2] = -pic->linesize[2]; + case AV_PIX_FMT_RGB555LE: + case AV_PIX_FMT_RGB565LE: case AV_PIX_FMT_BGR24: case AV_PIX_FMT_RGB24: pic->data[0] += (avctx->height - 1) * pic->linesize[0]; |