diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-01-29 02:11:11 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-02-02 23:53:29 +0100 |
commit | bb072a0369ffbe6fa72b5bc907863e93b1d85d1a (patch) | |
tree | 26f67d543f82f809692f818449f524bca933723f /libavformat | |
parent | 7b43646e18343eae65fc2d40f3423209b532f6a7 (diff) | |
download | ffmpeg-bb072a0369ffbe6fa72b5bc907863e93b1d85d1a.tar.gz |
avformat/rtmppkt: Only compile ff_rtmp_packet_dump if defined(DEBUG)
It is only used in this case.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/rtmppkt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/rtmppkt.c b/libavformat/rtmppkt.c index 0e61e83699..00eb0873b2 100644 --- a/libavformat/rtmppkt.c +++ b/libavformat/rtmppkt.c @@ -561,6 +561,7 @@ int ff_amf_get_field_value(const uint8_t *data, const uint8_t *data_end, return amf_get_field_value2(&gb, name, dst, dst_size); } +#ifdef DEBUG static const char* rtmp_packet_type(int type) { switch (type) { @@ -677,6 +678,7 @@ void ff_rtmp_packet_dump(void *ctx, RTMPPacket *p) av_log(ctx, AV_LOG_DEBUG, "\n"); } } +#endif int ff_amf_match_string(const uint8_t *data, int size, const char *str) { |