diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2016-06-26 14:51:33 +0200 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2016-06-26 14:51:33 +0200 |
commit | f972653ec19841639a8d5cb072b16e930812342f (patch) | |
tree | 8ac2c4adbb23aacec91bc5f95fd548c4139c312a /libavformat/rtsp.c | |
parent | b95534bb674acfe7689ca03cb4fa215c28f8f44f (diff) | |
parent | 3fdffc032e8ea5676bc0c2551b900c0dc887835b (diff) | |
download | ffmpeg-f972653ec19841639a8d5cb072b16e930812342f.tar.gz |
Merge commit '3fdffc032e8ea5676bc0c2551b900c0dc887835b'
* commit '3fdffc032e8ea5676bc0c2551b900c0dc887835b':
rtsp: Use avcodec_descriptor_get instead of avcodec_find_decoder
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
Diffstat (limited to 'libavformat/rtsp.c')
-rw-r--r-- | libavformat/rtsp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 6f0d2c567d..21c80c1cb0 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -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)"; |