1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avcodec/dxtory: add missed rgb555/rgb565 formats for vflip case

This commit is contained in:
Paul B Mahol 2020-09-04 00:29:08 +02:00
parent 4562d8e8d6
commit a198b508e3

View File

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