aboutsummaryrefslogtreecommitdiff
path: root/libavformat/rtmpproto.c
diff options
context:
space:
mode:
authorKostya Shishkov2009-11-22 08:40:55 +0000
committerKostya Shishkov2009-11-22 08:40:55 +0000
commitafbacb931bcdfeea76547ad18f6c7429596fa1ef (patch)
treecc2f71a8f7afe4b99ce1e8641c93a7c4f0a99fa0 /libavformat/rtmpproto.c
parentec10d2d53999f6edf7d7b5ac88df263eccfb1fb0 (diff)
Pass only useful FLV metadata from RTMP stream
Originally committed as revision 20573 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtmpproto.c')
-rw-r--r--libavformat/rtmpproto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c
index 6d52214a89..980b2d6c8b 100644
--- a/libavformat/rtmpproto.c
+++ b/libavformat/rtmpproto.c
@@ -511,7 +511,7 @@ static int get_packet(URLContext *s, int for_header)
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;