demux high profile H.264 ES

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15619 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
lorenm 2005-06-02 21:16:21 +00:00
parent 3f3ef3d48b
commit d4eed8f8d2
1 changed files with 10 additions and 0 deletions

View File

@ -329,6 +329,16 @@ int h264_parse_sps(mp_mpeg_header_t * picture, unsigned char * buf, int len)
picture->fps = picture->timeinc_unit = picture->timeinc_resolution = 0;
n = 24;
read_golomb(buf, &n);
if(buf[0] >= 100){
if(read_golomb(buf, &n) == 3)
n++;
read_golomb(buf, &n);
read_golomb(buf, &n);
n++;
if(getbits(buf, n++, 1)){
//FIXME scaling matrix
}
}
read_golomb(buf, &n);
v = read_golomb(buf, &n);
if(v == 0)