vlc | branch: master | Jean-Baptiste Kempf <j...@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 );
 

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to