Merge commit '0307cc2253e76772b1c645ac6117d08da87a147c'
* commit '0307cc2253e76772b1c645ac6117d08da87a147c': rtpdec: pass an AVFormatContext to ff_parse_fmtp() Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user