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/riffdec.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/riffdec.c')
-rw-r--r-- | libavformat/riffdec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/riffdec.c b/libavformat/riffdec.c index 0b1083264f..1602c31169 100644 --- a/libavformat/riffdec.c +++ b/libavformat/riffdec.c @@ -143,7 +143,7 @@ int ff_get_wav_header(AVFormatContext *s, AVIOContext *pb, } if (cbSize > 0) { av_freep(&par->extradata); - if (ff_get_extradata(par, pb, cbSize) < 0) + if (ff_get_extradata(s, par, pb, cbSize) < 0) return AVERROR(ENOMEM); size -= cbSize; } @@ -156,7 +156,7 @@ int ff_get_wav_header(AVFormatContext *s, AVIOContext *pb, size -= 4; av_freep(&par->extradata); - if (ff_get_extradata(par, pb, size) < 0) + if (ff_get_extradata(s, par, pb, size) < 0) return AVERROR(ENOMEM); nb_streams = AV_RL16(par->extradata + 4); par->sample_rate = AV_RL32(par->extradata + 12); |