1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

rtmp: update supported audio codecs value

The audio codecs property is composed by all values except
SUPPORT_SND_INTEL (0x0008) and SUPPORT_SND_UNUSED (0x0010) which are
unused.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
Samuel Pitoiset 2012-04-02 22:50:38 +02:00 committed by Luca Barbato
parent b991b300f2
commit faba4a9b88

View File

@ -138,8 +138,12 @@ static void gen_connect(URLContext *s, RTMPContext *rt, const char *proto,
ff_amf_write_bool(&p, 0); ff_amf_write_bool(&p, 0);
ff_amf_write_field_name(&p, "capabilities"); ff_amf_write_field_name(&p, "capabilities");
ff_amf_write_number(&p, 15.0); ff_amf_write_number(&p, 15.0);
/* Tell the server we support all the audio codecs except
* SUPPORT_SND_INTEL (0x0008) and SUPPORT_SND_UNUSED (0x0010)
* which are unused in the RTMP protocol implementation. */
ff_amf_write_field_name(&p, "audioCodecs"); ff_amf_write_field_name(&p, "audioCodecs");
ff_amf_write_number(&p, 1639.0); ff_amf_write_number(&p, 4071.0);
ff_amf_write_field_name(&p, "videoCodecs"); ff_amf_write_field_name(&p, "videoCodecs");
ff_amf_write_number(&p, 252.0); ff_amf_write_number(&p, 252.0);
ff_amf_write_field_name(&p, "videoFunction"); ff_amf_write_field_name(&p, "videoFunction");