diff options
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); |