aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexis Ballier <alexis.ballier@gmail.com>2010-03-17 13:04:33 +0000
committerBenoit Fouet <benoit.fouet@free.fr>2010-03-17 13:04:33 +0000
commit57937d6195f67f12872e6b954a45a8bc0f55b448 (patch)
tree8e244b7897f032aef6b62bdd6a75a0e55525642d
parentace38c36bf366038c96e33a84e7525318e9da7d1 (diff)
downloadffmpeg-57937d6195f67f12872e6b954a45a8bc0f55b448.tar.gz
qtrleenc: add rgb555 output
Patch by Alexis Ballier std_gmail_addr(name.surname) Originally committed as revision 22581 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/qtrleenc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/qtrleenc.c b/libavcodec/qtrleenc.c
index eb275d46db..259a377ef0 100644
--- a/libavcodec/qtrleenc.c
+++ b/libavcodec/qtrleenc.c
@@ -68,9 +68,9 @@ static av_cold int qtrle_encode_init(AVCodecContext *avctx)
s->avctx=avctx;
switch (avctx->pix_fmt) {
-/* case PIX_FMT_RGB555:
+ case PIX_FMT_RGB555BE:
s->pixel_size = 2;
- break;*/
+ break;
case PIX_FMT_RGB24:
s->pixel_size = 3;
break;
@@ -328,6 +328,6 @@ AVCodec qtrle_encoder = {
qtrle_encode_init,
qtrle_encode_frame,
qtrle_encode_end,
- .pix_fmts = (const enum PixelFormat[]){PIX_FMT_RGB24, PIX_FMT_ARGB, PIX_FMT_NONE},
+ .pix_fmts = (const enum PixelFormat[]){PIX_FMT_RGB24, PIX_FMT_RGB555BE, PIX_FMT_ARGB, PIX_FMT_NONE},
.long_name = NULL_IF_CONFIG_SMALL("QuickTime Animation (RLE) video"),
};