From 353b492d0f2a21ae8eb829db1ac01b54b2a4d202 Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Mon, 23 Feb 2015 21:53:19 +0200 Subject: rtpdec: Change enc_name to a pointer instead of a fixed-size buffer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This avoids allocating space for a too large buffer for all the name strings. Signed-off-by: Martin Storsjö --- libavformat/rtpdec.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/rtpdec.h') diff --git a/libavformat/rtpdec.h b/libavformat/rtpdec.h index 46b08ce925..9f1a475ba0 100644 --- a/libavformat/rtpdec.h +++ b/libavformat/rtpdec.h @@ -113,7 +113,7 @@ typedef int (*DynamicPayloadPacketHandlerProc)(AVFormatContext *ctx, int len, uint16_t seq, int flags); struct RTPDynamicProtocolHandler { - const char enc_name[50]; + const char *enc_name; enum AVMediaType codec_type; enum AVCodecID codec_id; int static_payload_id; /* 0 means no payload id is set. 0 is a valid -- cgit v1.2.3