[MPlayer-dev-eng] Keyframe Flag in Real.c V2

Jan Schunk jan.schunk at gmx.de
Thu Sep 18 18:22:06 CEST 2003


Sorry, I did a mistake in line 634, this is the right code:

I have found the keyframe flag for RealMedia rtsp Streams:

Go to the following function:

580  int real_get_rdt_chunk(rtsp_t *rtsp_session, char *buffer)


Replace this line

618    unknown1=(header[5]<<12)+(header[6]<<8)+(header[7]);


with this one:

618    unknown1=(header[5]<<16)+(header[6]<<8)+(header[7]);


And this one

634    ph.flags=0;      /* TODO: determine keyframe flag and insert here? */

with this:

634    ph.flags=2-(2*((unknown1)&1));
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20030918/0114c25b/attachment.htm>


More information about the MPlayer-dev-eng mailing list