Commit f972653e authored by Hendrik Leppkes's avatar Hendrik Leppkes

Merge commit '3fdffc03'

* commit '3fdffc03':
  rtsp: Use avcodec_descriptor_get instead of avcodec_find_decoder
Merged-by: 's avatarHendrik Leppkes <h.leppkes@gmail.com>
parents b95534bb 3fdffc03
......@@ -248,7 +248,7 @@ static int sdp_parse_rtpmap(AVFormatContext *s,
AVCodecParameters *par = st->codecpar;
char buf[256];
int i;
AVCodec *c;
const AVCodecDescriptor *desc;
const char *c_name;
/* See if we can handle this kind of payload.
......@@ -274,9 +274,9 @@ static int sdp_parse_rtpmap(AVFormatContext *s,
par->codec_id = ff_rtp_codec_id(buf, par->codec_type);
}
c = avcodec_find_decoder(par->codec_id);
if (c && c->name)
c_name = c->name;
desc = avcodec_descriptor_get(par->codec_id);
if (desc && desc->name)
c_name = desc->name;
else
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