[vlc-commits] Use RGB for TIFF encoding
Jean-Baptiste Kempf
git at videolan.org
Sun Apr 27 17:37:23 CEST 2014
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Apr 27 17:34:51 2014 +0200| [f24ac8e07c860c1c6f210c6b48430ca9a708a1c4] | committer: Jean-Baptiste Kempf
Use RGB for TIFF encoding
Close #10844
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f24ac8e07c860c1c6f210c6b48430ca9a708a1c4
---
modules/codec/avcodec/encoder.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/modules/codec/avcodec/encoder.c b/modules/codec/avcodec/encoder.c
index d6f3a80..3062850 100644
--- a/modules/codec/avcodec/encoder.c
+++ b/modules/codec/avcodec/encoder.c
@@ -519,6 +519,11 @@ int OpenEncoder( vlc_object_t *p_this )
p_enc->fmt_in.i_codec = VLC_CODEC_I420;
+
+ /* Very few application support YUV in TIFF, not even VLC */
+ if( p_enc->fmt_out.i_codec == VLC_CODEC_TIFF )
+ p_enc->fmt_in.i_codec = VLC_CODEC_RGB24;
+
p_enc->fmt_in.video.i_chroma = p_enc->fmt_in.i_codec;
GetFfmpegChroma( &p_context->pix_fmt, &p_enc->fmt_in.video );
More information about the vlc-commits
mailing list