diff options
author | Martin Storsjö <martin@martin.st> | 2015-02-23 21:53:19 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2015-02-24 16:21:18 +0200 |
commit | 353b492d0f2a21ae8eb829db1ac01b54b2a4d202 (patch) | |
tree | cac46c96e59b20c090ed04f00d4e22521a16ebe6 /libavformat/rtpdec.c | |
parent | 0752f700d63f6b15ffd5369ac7615414cce71247 (diff) | |
download | ffmpeg-353b492d0f2a21ae8eb829db1ac01b54b2a4d202.tar.gz |
rtpdec: Change enc_name to a pointer instead of a fixed-size buffer
This avoids allocating space for a too large buffer for all the
name strings.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtpdec.c')
-rw-r--r-- | libavformat/rtpdec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c index f040ea618e..d0b25bcbf1 100644 --- a/libavformat/rtpdec.c +++ b/libavformat/rtpdec.c @@ -113,7 +113,8 @@ RTPDynamicProtocolHandler *ff_rtp_handler_find_by_name(const char *name, RTPDynamicProtocolHandler *handler; for (handler = rtp_first_dynamic_payload_handler; handler; handler = handler->next) - if (!av_strcasecmp(name, handler->enc_name) && + if (handler->enc_name && + !av_strcasecmp(name, handler->enc_name) && codec_type == handler->codec_type) return handler; return NULL; |