mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-29 10:52:20 +00:00
Merge commit '92ed83e393d25b6d15920e90d56ee77de54a9728'
* commit '92ed83e393d25b6d15920e90d56ee77de54a9728': rtmp: Store all the notify messages Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
a275ff7e01
@ -2085,10 +2085,9 @@ static int handle_notify(URLContext *s, RTMPPacket *pkt) {
|
||||
if (ff_amf_read_string(&gbc, statusmsg,
|
||||
sizeof(statusmsg), &stringlen))
|
||||
return AVERROR_INVALIDDATA;
|
||||
if (strcmp(statusmsg, "onMetaData")) {
|
||||
av_log(s, AV_LOG_INFO, "Expecting onMetadata but got %s\n",
|
||||
statusmsg);
|
||||
return 0;
|
||||
} else {
|
||||
datatowrite = pkt->data;
|
||||
datatowritelength = pkt->size;
|
||||
}
|
||||
|
||||
/* Provide ECMAArray to flv */
|
||||
@ -2117,7 +2116,7 @@ static int handle_notify(URLContext *s, RTMPPacket *pkt) {
|
||||
bytestream2_put_be24(&pbc, 0);
|
||||
bytestream2_put_buffer(&pbc, datatowrite, datatowritelength);
|
||||
bytestream2_put_be32(&pbc, 0);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user