diff options
author | Paul B Mahol <onemda@gmail.com> | 2016-04-14 18:21:08 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2016-04-14 18:21:08 +0200 |
commit | 323b8c95e41094b90ed2a9bdd9a06d22d2f74856 (patch) | |
tree | d0bb264c76b926aa306f9668adfa79361d8a56db /libavformat/mpc.c | |
parent | 8e26bdd59bf559d00c7e60c53fff292de10139ff (diff) | |
download | ffmpeg-323b8c95e41094b90ed2a9bdd9a06d22d2f74856.tar.gz |
avformat: add AVFormatContext to ff_get_extradata()
Needed for av_log() inside that function.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavformat/mpc.c')
-rw-r--r-- | libavformat/mpc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mpc.c b/libavformat/mpc.c index ffd1c56c1c..f32d65fa55 100644 --- a/libavformat/mpc.c +++ b/libavformat/mpc.c @@ -95,7 +95,7 @@ static int mpc_read_header(AVFormatContext *s) st->codecpar->channel_layout = AV_CH_LAYOUT_STEREO; st->codecpar->bits_per_coded_sample = 16; - if (ff_get_extradata(st->codecpar, s->pb, 16) < 0) + if (ff_get_extradata(s, st->codecpar, s->pb, 16) < 0) return AVERROR(ENOMEM); st->codecpar->sample_rate = mpc_rate[st->codecpar->extradata[2] & 3]; avpriv_set_pts_info(st, 32, MPC_FRAMESIZE, st->codecpar->sample_rate); |