diff mbox series

[FFmpeg-devel,3/3] avcodec/dxtory: add missed rgb555/rgb565 formats for vflip case

Message ID 20200904101706.24228-3-onemda@gmail.com
State Accepted
Commit a198b508e327a9a9705fb3eb5e366d7ed098ac67
Headers show
Series [FFmpeg-devel,1/3] avcodec/dxtory: unbreak decoding after 6e1a167c556
Related show

Checks

Context Check Description
andriy/default pending
andriy/make success Make finished
andriy/make_fate success Make fate finished

Commit Message

Paul B Mahol Sept. 4, 2020, 10:17 a.m. UTC
Signed-off-by: Paul B Mahol <onemda@gmail.com>
---
 libavcodec/dxtory.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

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];