mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-17 12:27:18 +00:00
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>
This commit is contained in:
parent
7b43646e18
commit
bb072a0369
@ -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);
|
return amf_get_field_value2(&gb, name, dst, dst_size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef DEBUG
|
||||||
static const char* rtmp_packet_type(int type)
|
static const char* rtmp_packet_type(int type)
|
||||||
{
|
{
|
||||||
switch (type) {
|
switch (type) {
|
||||||
@ -677,6 +678,7 @@ void ff_rtmp_packet_dump(void *ctx, RTMPPacket *p)
|
|||||||
av_log(ctx, AV_LOG_DEBUG, "\n");
|
av_log(ctx, AV_LOG_DEBUG, "\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
int ff_amf_match_string(const uint8_t *data, int size, const char *str)
|
int ff_amf_match_string(const uint8_t *data, int size, const char *str)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user