mpeg2 chroma422/444 support

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12563 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
iive 2004-06-11 08:09:24 +00:00
parent b14227ecfb
commit ffce5bb4b4
2 changed files with 6 additions and 2 deletions

View File

@ -50,6 +50,7 @@ videocodec ffmpeg2
driver ffmpeg driver ffmpeg
dll "mpeg2video" dll "mpeg2video"
out YV12,I420,IYUV out YV12,I420,IYUV
out 422P,444P
; for backward compatibility ; for backward compatibility
videocodec ffmpeg12 videocodec ffmpeg12
@ -63,6 +64,7 @@ videocodec ffmpeg12
driver ffmpeg driver ffmpeg
dll "mpegvideo" dll "mpegvideo"
out YV12,I420,IYUV out YV12,I420,IYUV
out 422P,444P
videocodec ffmpeg12mc videocodec ffmpeg12mc
info "FFmpeg MPEG 1/2 (XvMC)" info "FFmpeg MPEG 1/2 (XvMC)"

View File

@ -58,7 +58,9 @@ static int header_process_sequence_extension (mp_mpeg_header_t * picture,
unsigned char * buffer) unsigned char * buffer)
{ {
/* check chroma format, size extensions, marker bit */ /* check chroma format, size extensions, marker bit */
if (((buffer[1] & 0x07) != 0x02) || (buffer[2] & 0xe0) ||
if ( ((buffer[1] & 0x06) == 0x00) ||
((buffer[1] & 0x01) != 0x00) || (buffer[2] & 0xe0) ||
((buffer[3] & 0x01) != 0x01) ) ((buffer[3] & 0x01) != 0x01) )
return 1; return 1;