Commit 28efeeec authored by Gildas Bazin's avatar Gildas Bazin

* modules/codec/ffmpeg/demux.c: do not re-invent the wheel.

parent 570f1d43
......@@ -198,46 +198,7 @@ int E_(OpenDemux)( vlc_object_t *p_this )
if( cc->codec_id == CODEC_ID_RAWVIDEO )
{
msg_Dbg( p_demux, "raw video, pixel format: %i", cc->pix_fmt );
switch( cc->pix_fmt )
{
case PIX_FMT_YUV444P:
fcc = VLC_FOURCC( 'I', '4', '4', '4' );
break;
case PIX_FMT_YUV422P:
fcc = VLC_FOURCC( 'I', '4', '2', '2' );
break;
case PIX_FMT_YUV420P:
fcc = VLC_FOURCC( 'I', '4', '2', '0' );
break;
case PIX_FMT_YUV411P:
fcc = VLC_FOURCC( 'I', '4', '1', '1' );
break;
case PIX_FMT_YUV410P:
fcc = VLC_FOURCC( 'I', '4', '1', '0' );
break;
case PIX_FMT_YUV422:
fcc = VLC_FOURCC('Y','U','Y','2');
break;
case PIX_FMT_RGB555:
fcc = VLC_FOURCC('R','V','1','5');
break;
case PIX_FMT_RGB565:
fcc = VLC_FOURCC('R','V','1','6');
break;
case PIX_FMT_RGB24:
fcc = VLC_FOURCC('R','V','2','4');
break;
case PIX_FMT_RGBA32:
fcc = VLC_FOURCC('R','V','3','2');
break;
case PIX_FMT_GRAY8:
fcc = VLC_FOURCC('G','R','E','Y');
break;
default:
break;
}
fcc = E_(GetVlcChroma)( cc->pix_fmt );
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment