summaryrefslogtreecommitdiff
path: root/libavcodec/qtrleenc.c
diff options
context:
space:
mode:
authorAlexis Ballier <alexis.ballier@gmail.com>2009-07-08 14:58:16 +0000
committerCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>2009-07-08 14:58:16 +0000
commit287fff266f1512dde69c84621d042d9bbdaa3496 (patch)
tree43362246e376eacb05dea3ea422eaa4d75b53634 /libavcodec/qtrleenc.c
parent5a1e202b873c7e61d025f3a572ab0c8b48319984 (diff)
downloadffmpeg-287fff266f1512dde69c84621d042d9bbdaa3496.tar.gz
Add PIX_FMT_ARGB encoding to qtrle.
Patch by Alexis Ballier, alexis ballier gmail Originally committed as revision 19372 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/qtrleenc.c')
-rw-r--r--libavcodec/qtrleenc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/qtrleenc.c b/libavcodec/qtrleenc.c
index b302964b98..945111a931 100644
--- a/libavcodec/qtrleenc.c
+++ b/libavcodec/qtrleenc.c
@@ -74,6 +74,9 @@ static av_cold int qtrle_encode_init(AVCodecContext *avctx)
case PIX_FMT_RGB24:
s->pixel_size = 3;
break;
+ case PIX_FMT_ARGB:
+ s->pixel_size = 4;
+ break;
default:
av_log(avctx, AV_LOG_ERROR, "Unsupported colorspace.\n");
break;
@@ -325,6 +328,6 @@ AVCodec qtrle_encoder = {
qtrle_encode_init,
qtrle_encode_frame,
qtrle_encode_end,
- .pix_fmts = (enum PixelFormat[]){PIX_FMT_RGB24, PIX_FMT_NONE},
+ .pix_fmts = (enum PixelFormat[]){PIX_FMT_RGB24, PIX_FMT_ARGB, PIX_FMT_NONE},
.long_name = NULL_IF_CONFIG_SMALL("QuickTime Animation (RLE) video"),
};