[MPlayer-dev-eng] [PATCH] Keyframe Flag in libmpdemux/realrtsp/real.c

Jan Schunk jan.schunk at gmx.de
Thu Sep 18 19:21:51 CEST 2003


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/5e0d9813/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: real.c
Type: application/octet-stream
Size: 22751 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20030918/5e0d9813/attachment.obj>


More information about the MPlayer-dev-eng mailing list