[FFmpeg-cvslog] Make tiff-in-mov QuickTime-compatible for more colour-spaces.
Carl Eugen Hoyos
git at videolan.org
Wed Apr 18 22:34:14 CEST 2012
ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Wed Apr 18 22:29:46 2012 +0200| [dddd06d5b48664212ace4bb510757e9bb221b598] | committer: Carl Eugen Hoyos
Make tiff-in-mov QuickTime-compatible for more colour-spaces.
Fixes ticket #1228.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=dddd06d5b48664212ace4bb510757e9bb221b598
---
libavcodec/tiffenc.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/libavcodec/tiffenc.c b/libavcodec/tiffenc.c
index d7165dc..587e98e 100644
--- a/libavcodec/tiffenc.c
+++ b/libavcodec/tiffenc.c
@@ -252,23 +252,28 @@ static int encode_frame(AVCodecContext * avctx, AVPacket *pkt,
bpp_tab[3] = 16;
break;
case PIX_FMT_RGBA:
+ avctx->bits_per_coded_sample =
s->bpp = 32;
s->photometric_interpretation = 2;
break;
case PIX_FMT_RGB24:
+ avctx->bits_per_coded_sample =
s->bpp = 24;
s->photometric_interpretation = 2;
break;
case PIX_FMT_GRAY8:
+ avctx->bits_per_coded_sample = 0x28;
s->bpp = 8;
s->photometric_interpretation = 1;
break;
case PIX_FMT_PAL8:
+ avctx->bits_per_coded_sample =
s->bpp = 8;
s->photometric_interpretation = 3;
break;
case PIX_FMT_MONOBLACK:
case PIX_FMT_MONOWHITE:
+ avctx->bits_per_coded_sample =
s->bpp = 1;
s->photometric_interpretation = avctx->pix_fmt == PIX_FMT_MONOBLACK;
bpp_tab[0] = 1;
More information about the ffmpeg-cvslog
mailing list