diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-12-25 19:37:42 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-12-25 20:38:29 +0400 |
commit | a1ce41c9a4ec8cf9eb8a4944e4188a51b88fbd70 (patch) | |
tree | e0fd7499c55e39e64969b1fd110c39d770f330ae /libavformat/mpc.c | |
parent | 3e5a7dffe8037945f77e98d935e04fab6940d5a5 (diff) |
avformat/mpc: use ff_get_extradata()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mpc.c')
-rw-r--r-- | libavformat/mpc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/mpc.c b/libavformat/mpc.c index 8abc488553..c3faebe6c0 100644 --- a/libavformat/mpc.c +++ b/libavformat/mpc.c @@ -95,9 +95,8 @@ static int mpc_read_header(AVFormatContext *s) st->codec->channel_layout = AV_CH_LAYOUT_STEREO; st->codec->bits_per_coded_sample = 16; - if (ff_alloc_extradata(st->codec, 16)) + if (ff_get_extradata(st->codec, s->pb, 16) < 0) return AVERROR(ENOMEM); - avio_read(s->pb, st->codec->extradata, 16); st->codec->sample_rate = mpc_rate[st->codec->extradata[2] & 3]; avpriv_set_pts_info(st, 32, MPC_FRAMESIZE, st->codec->sample_rate); /* scan for seekpoints */ |