[FFmpeg-cvslog] avformat/rtmppkt: Remove ff_amf_read_bool
Andreas Rheinhardt
git at videolan.org
Wed Feb 3 01:06:27 EET 2021
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at gmail.com> | Fri Jan 29 00:17:17 2021 +0100| [82d5316c57618c946b58ec446f8836422efb5b37] | committer: Andreas Rheinhardt
avformat/rtmppkt: Remove ff_amf_read_bool
Added in 50468f93e3940ba78836dfdac5165c20ae75327a, but never used.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=82d5316c57618c946b58ec446f8836422efb5b37
---
libavformat/rtmppkt.c | 8 --------
libavformat/rtmppkt.h | 9 ---------
2 files changed, 17 deletions(-)
diff --git a/libavformat/rtmppkt.c b/libavformat/rtmppkt.c
index 1eeae17337..0e61e83699 100644
--- a/libavformat/rtmppkt.c
+++ b/libavformat/rtmppkt.c
@@ -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;
diff --git a/libavformat/rtmppkt.h b/libavformat/rtmppkt.h
index eb68f1d3e1..a15d2a5773 100644
--- a/libavformat/rtmppkt.h
+++ b/libavformat/rtmppkt.h
@@ -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.
*
More information about the ffmpeg-cvslog
mailing list