Mercurial > libavformat.hg
changeset 5376:f31fa4114750 libavformat
Pass only useful FLV metadata from RTMP stream
author | kostya |
---|---|
date | Sun, 22 Nov 2009 08:40:55 +0000 |
parents | 222bbba5fd35 |
children | 9313acce85fc |
files | rtmpproto.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/rtmpproto.c Sun Nov 22 02:07:10 2009 +0000 +++ b/rtmpproto.c Sun Nov 22 08:40:55 2009 +0000 @@ -511,7 +511,7 @@ continue; } if (rpkt.type == RTMP_PT_VIDEO || rpkt.type == RTMP_PT_AUDIO || - rpkt.type == RTMP_PT_NOTIFY) { + (rpkt.type == RTMP_PT_NOTIFY && !memcmp("\002\000\012onMetaData", rpkt.data, 13))) { uint8_t *p; uint32_t ts = rpkt.timestamp;