summaryrefslogtreecommitdiff
path: root/libavformat/riffdec.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2016-04-14 18:21:08 +0200
committerPaul B Mahol <onemda@gmail.com>2016-04-14 18:21:08 +0200
commit323b8c95e41094b90ed2a9bdd9a06d22d2f74856 (patch)
treed0bb264c76b926aa306f9668adfa79361d8a56db /libavformat/riffdec.c
parent8e26bdd59bf559d00c7e60c53fff292de10139ff (diff)
downloadffmpeg-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.c4
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);