mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-03 21:42:09 +00:00
rtmp: Store all the notify messages
The onTextData is used to implement text data streams in flv.
This commit is contained in:
parent
fe0337e89b
commit
92ed83e393
@ -2088,10 +2088,9 @@ static int handle_notify(URLContext *s, RTMPPacket *pkt) {
|
|||||||
if (ff_amf_read_string(&gbc, statusmsg,
|
if (ff_amf_read_string(&gbc, statusmsg,
|
||||||
sizeof(statusmsg), &stringlen))
|
sizeof(statusmsg), &stringlen))
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
if (strcmp(statusmsg, "onMetaData")) {
|
} else {
|
||||||
av_log(s, AV_LOG_INFO, "Expecting onMetadata but got %s\n",
|
datatowrite = pkt->data;
|
||||||
statusmsg);
|
datatowritelength = pkt->size;
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Provide ECMAArray to flv */
|
/* Provide ECMAArray to flv */
|
||||||
@ -2120,7 +2119,7 @@ static int handle_notify(URLContext *s, RTMPPacket *pkt) {
|
|||||||
bytestream2_put_be24(&pbc, 0);
|
bytestream2_put_be24(&pbc, 0);
|
||||||
bytestream2_put_buffer(&pbc, datatowrite, datatowritelength);
|
bytestream2_put_buffer(&pbc, datatowrite, datatowritelength);
|
||||||
bytestream2_put_be32(&pbc, 0);
|
bytestream2_put_be32(&pbc, 0);
|
||||||
}
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user