mirror of
https://github.com/librempeg/librempeg
synced 2024-11-23 11:39:47 +00:00
avformat/rtmppkt: Remove ff_amf_read_bool
Added in 50468f93e3
, but never used.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
parent
ac05413dfb
commit
82d5316c57
@ -84,14 +84,6 @@ void ff_amf_write_object_end(uint8_t **dst)
|
||||
bytestream_put_be24(dst, AMF_DATA_TYPE_OBJECT_END);
|
||||
}
|
||||
|
||||
int ff_amf_read_bool(GetByteContext *bc, int *val)
|
||||
{
|
||||
if (bytestream2_get_byte(bc) != AMF_DATA_TYPE_BOOL)
|
||||
return AVERROR_INVALIDDATA;
|
||||
*val = bytestream2_get_byte(bc);
|
||||
return 0;
|
||||
}
|
||||
|
||||
int ff_amf_read_number(GetByteContext *bc, double *val)
|
||||
{
|
||||
uint64_t read;
|
||||
|
@ -259,15 +259,6 @@ void ff_amf_write_field_name(uint8_t **dst, const char *str);
|
||||
*/
|
||||
void ff_amf_write_object_end(uint8_t **dst);
|
||||
|
||||
/**
|
||||
* Read AMF boolean value.
|
||||
*
|
||||
*@param[in,out] gbc GetByteContext initialized with AMF-formatted data
|
||||
*@param[out] val 0 or 1
|
||||
*@return 0 on success or an AVERROR code on failure
|
||||
*/
|
||||
int ff_amf_read_bool(GetByteContext *gbc, int *val);
|
||||
|
||||
/**
|
||||
* Read AMF number value.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user