mirror of
https://github.com/videolan/vlc.git
synced 2024-11-24 02:14:26 +08:00
avcodec: use RGB24 without a mask when encoding TIFF
Given the code below we accept a few chroma mapping, including AV_PIX_FMT_RGB24 which maps to VLC_CODEC_RGB24 regardless of endianness. The libavcodec encoder does accept AV_PIX_FMT_RGB24, not AV_PIX_FMT_BGR24 [1]. [1] https://git.ffmpeg.org/gitweb/ffmpeg.git/blob/HEAD:/libavcodec/tiffenc.c#l583
This commit is contained in:
parent
de4609beb7
commit
03463c279b
@ -569,7 +569,7 @@ int InitVideoEnc( vlc_object_t *p_this )
|
|||||||
if( p_enc->fmt_out.i_codec == VLC_CODEC_TIFF )
|
if( p_enc->fmt_out.i_codec == VLC_CODEC_TIFF )
|
||||||
{
|
{
|
||||||
p_enc->fmt_in.i_codec =
|
p_enc->fmt_in.i_codec =
|
||||||
p_enc->fmt_in.video.i_chroma = VLC_CODEC_RGB24M;
|
p_enc->fmt_in.video.i_chroma = VLC_CODEC_RGB24;
|
||||||
}
|
}
|
||||||
|
|
||||||
p_context->pix_fmt = GetFfmpegChroma( &p_enc->fmt_in.video );
|
p_context->pix_fmt = GetFfmpegChroma( &p_enc->fmt_in.video );
|
||||||
|
Loading…
Reference in New Issue
Block a user