vlc | branch: master | Francois Cartegnie <[email protected]> | Tue Sep 25 15:24:24 2018 +0200| [fccbb2e1c8bfb152b276cd9316a67a14a796d1cb] | committer: Francois Cartegnie
codec: avcodec: set RGB shift in encoder > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fccbb2e1c8bfb152b276cd9316a67a14a796d1cb --- modules/codec/avcodec/chroma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/codec/avcodec/chroma.c b/modules/codec/avcodec/chroma.c index 454a20381e..b638f6210c 100644 --- a/modules/codec/avcodec/chroma.c +++ b/modules/codec/avcodec/chroma.c @@ -226,7 +226,6 @@ vlc_fourcc_t FindVlcChroma( int i_ffmpeg_id ) int GetVlcChroma( video_format_t *fmt, int i_ffmpeg_chroma ) { - /* TODO FIXME for rgb format we HAVE to set rgb mask/shift */ for( int i = 0; chroma_table[i].i_chroma != 0; i++ ) { if( chroma_table[i].i_chroma_id == i_ffmpeg_chroma ) @@ -235,6 +234,7 @@ int GetVlcChroma( video_format_t *fmt, int i_ffmpeg_chroma ) fmt->i_gmask = chroma_table[i].i_gmask; fmt->i_bmask = chroma_table[i].i_bmask; fmt->i_chroma = chroma_table[i].i_chroma; + video_format_FixRgb( fmt ); return VLC_SUCCESS; } } _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
