summaryrefslogtreecommitdiff
path: root/libavformat/rtpdec_ilbc.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2014-07-05 07:01:07 +0000
committerAnton Khirnov <anton@khirnov.net>2014-07-09 13:40:54 +0000
commit0307cc2253e76772b1c645ac6117d08da87a147c (patch)
treea888e60dee2ceb9b4abbe48ec4f13a70303d4015 /libavformat/rtpdec_ilbc.c
parent650d384048ed42579cc6d67bf32a94b468c0b6cb (diff)
rtpdec: pass an AVFormatContext to ff_parse_fmtp()
Use it for logging, instead of NULL or the stream codec context.
Diffstat (limited to 'libavformat/rtpdec_ilbc.c')
-rw-r--r--libavformat/rtpdec_ilbc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libavformat/rtpdec_ilbc.c b/libavformat/rtpdec_ilbc.c
index 2e99734f2a..bff47c7ac2 100644
--- a/libavformat/rtpdec_ilbc.c
+++ b/libavformat/rtpdec_ilbc.c
@@ -23,7 +23,8 @@
#include "rtpdec_formats.h"
#include "libavutil/avstring.h"
-static int ilbc_parse_fmtp(AVStream *stream, PayloadContext *data,
+static int ilbc_parse_fmtp(AVFormatContext *s,
+ AVStream *stream, PayloadContext *data,
char *attr, char *value)
{
if (!strcmp(attr, "mode")) {
@@ -36,7 +37,7 @@ static int ilbc_parse_fmtp(AVStream *stream, PayloadContext *data,
stream->codec->block_align = 50;
break;
default:
- av_log(NULL, AV_LOG_ERROR, "Unsupported iLBC mode %d\n", mode);
+ av_log(s, AV_LOG_ERROR, "Unsupported iLBC mode %d\n", mode);
return AVERROR(EINVAL);
}
}
@@ -54,7 +55,7 @@ static int ilbc_parse_sdp_line(AVFormatContext *s, int st_index,
st = s->streams[st_index];
if (av_strstart(line, "fmtp:", &p)) {
- int ret = ff_parse_fmtp(st, data, p, ilbc_parse_fmtp);
+ int ret = ff_parse_fmtp(s, st, data, p, ilbc_parse_fmtp);
if (ret < 0)
return ret;
if (!st->codec->block_align) {