diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-07-29 14:02:09 +0100 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-08-04 12:55:08 +0100 |
commit | e96c3b81cadd0ba84d43b1f3a54980df3785d9a5 (patch) | |
tree | d5c3febf7f1ab93958a800e778d63d1233ca7779 /libavcodec/pngdec.c | |
parent | e0d73fda361729d207e51fa2afd8ba6102e58d98 (diff) | |
download | ffmpeg-e96c3b81cadd0ba84d43b1f3a54980df3785d9a5.tar.gz |
avutil: rename AV_PIX_FMT_Y400A to AV_PIX_FMT_YA8
The rationale is that you have a packed format in form
<greyscale sample> <alpha sample> <greyscale sample> <alpha sample>
and shortening greyscale to 'G' might make one thing about Greenscale instead.
An alias pixel format and color space name are provided for compatibility.
Diffstat (limited to 'libavcodec/pngdec.c')
-rw-r--r-- | libavcodec/pngdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c index bbe42230db..7bc2ad4847 100644 --- a/libavcodec/pngdec.c +++ b/libavcodec/pngdec.c @@ -499,7 +499,7 @@ static int decode_frame(AVCodecContext *avctx, avctx->pix_fmt = AV_PIX_FMT_PAL8; } else if (s->bit_depth == 8 && s->color_type == PNG_COLOR_TYPE_GRAY_ALPHA) { - avctx->pix_fmt = AV_PIX_FMT_Y400A; + avctx->pix_fmt = AV_PIX_FMT_YA8; } else { goto fail; } |