Commit 3fdffc03 authored by Martin Storsjö's avatar Martin Storsjö

rtsp: Use avcodec_descriptor_get instead of avcodec_find_decoder

This is only used for logging a human readable codec name for
debugging.
Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
parent e47b8bbf
...@@ -242,7 +242,7 @@ static int sdp_parse_rtpmap(AVFormatContext *s, ...@@ -242,7 +242,7 @@ static int sdp_parse_rtpmap(AVFormatContext *s,
AVCodecParameters *par = st->codecpar; AVCodecParameters *par = st->codecpar;
char buf[256]; char buf[256];
int i; int i;
AVCodec *c; const AVCodecDescriptor *desc;
const char *c_name; const char *c_name;
/* See if we can handle this kind of payload. /* See if we can handle this kind of payload.
...@@ -268,9 +268,9 @@ static int sdp_parse_rtpmap(AVFormatContext *s, ...@@ -268,9 +268,9 @@ static int sdp_parse_rtpmap(AVFormatContext *s,
par->codec_id = ff_rtp_codec_id(buf, par->codec_type); par->codec_id = ff_rtp_codec_id(buf, par->codec_type);
} }
c = avcodec_find_decoder(par->codec_id); desc = avcodec_descriptor_get(par->codec_id);
if (c && c->name) if (desc && desc->name)
c_name = c->name; c_name = desc->name;
else else
c_name = "(null)"; c_name = "(null)";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment