mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-11 09:20:01 +01:00
rtmpproto: Don't include the libavformat version as "clientid"
When acting as server, the server can include a "clientid" property in some status messages. But this should be a unique number identifying the client session, not identifying the server itself. In practice, omitting it works just as well as including this incorrect field. Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
@@ -1874,9 +1874,6 @@ static int write_status(URLContext *s, RTMPPacket *pkt,
|
|||||||
ff_amf_write_string(&pp, statusmsg);
|
ff_amf_write_string(&pp, statusmsg);
|
||||||
ff_amf_write_field_name(&pp, "details");
|
ff_amf_write_field_name(&pp, "details");
|
||||||
ff_amf_write_string(&pp, filename);
|
ff_amf_write_string(&pp, filename);
|
||||||
ff_amf_write_field_name(&pp, "clientid");
|
|
||||||
snprintf(statusmsg, sizeof(statusmsg), "%s", LIBAVFORMAT_IDENT);
|
|
||||||
ff_amf_write_string(&pp, statusmsg);
|
|
||||||
ff_amf_write_object_end(&pp);
|
ff_amf_write_object_end(&pp);
|
||||||
|
|
||||||
spkt.size = pp - spkt.data;
|
spkt.size = pp - spkt.data;
|
||||||
|
|||||||
Reference in New Issue
Block a user