# HG changeset patch # User kostya # Date 1258879255 0 # Node ID f31fa4114750f73b035a1956c937f54762310eca # Parent 222bbba5fd35d52e3df5592e403cb4c1743382fc Pass only useful FLV metadata from RTMP stream diff -r 222bbba5fd35 -r f31fa4114750 rtmpproto.c --- 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;