diff options
author | Anton Khirnov <anton@khirnov.net> | 2014-07-05 07:01:07 +0000 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2014-07-09 13:40:54 +0000 |
commit | 0307cc2253e76772b1c645ac6117d08da87a147c (patch) | |
tree | a888e60dee2ceb9b4abbe48ec4f13a70303d4015 /libavformat/rtpdec_mpeg4.c | |
parent | 650d384048ed42579cc6d67bf32a94b468c0b6cb (diff) | |
download | ffmpeg-0307cc2253e76772b1c645ac6117d08da87a147c.tar.gz |
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_mpeg4.c')
-rw-r--r-- | libavformat/rtpdec_mpeg4.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/rtpdec_mpeg4.c b/libavformat/rtpdec_mpeg4.c index bec5c7d55c..4aedeea6be 100644 --- a/libavformat/rtpdec_mpeg4.c +++ b/libavformat/rtpdec_mpeg4.c @@ -210,7 +210,8 @@ static int aac_parse_packet(AVFormatContext *ctx, PayloadContext *data, return 0; } -static int parse_fmtp(AVStream *stream, PayloadContext *data, +static int parse_fmtp(AVFormatContext *s, + AVStream *stream, PayloadContext *data, char *attr, char *value) { AVCodecContext *codec = stream->codec; @@ -248,7 +249,7 @@ static int parse_sdp_line(AVFormatContext *s, int st_index, return 0; if (av_strstart(line, "fmtp:", &p)) - return ff_parse_fmtp(s->streams[st_index], data, p, parse_fmtp); + return ff_parse_fmtp(s, s->streams[st_index], data, p, parse_fmtp); return 0; } |