aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/riffdec.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2015-07-11 12:41:42 +0200
committerLuca Barbato <lu_zero@gentoo.org>2015-07-11 18:45:44 +0200
commitd80811c94e068085aab797f9ba35790529126f85 (patch)
tree36b351f1b300f57c899ff17f561f3f087193b632 /libavformat/riffdec.c
parent355864ef7a9548ee6491a25de1e0650bd983a667 (diff)
downloadffmpeg-d80811c94e068085aab797f9ba35790529126f85.tar.gz
riff: Use the correct logging context
Diffstat (limited to 'libavformat/riffdec.c')
-rw-r--r--libavformat/riffdec.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/riffdec.c b/libavformat/riffdec.c
index 2c43afc27c..fc6f76ceaf 100644
--- a/libavformat/riffdec.c
+++ b/libavformat/riffdec.c
@@ -75,7 +75,8 @@ static void parse_waveformatex(AVIOContext *pb, AVCodecContext *c)
}
}
-int ff_get_wav_header(AVIOContext *pb, AVCodecContext *codec, int size)
+int ff_get_wav_header(AVFormatContext *s, AVIOContext *pb,
+ AVCodecContext *codec, int size)
{
int id;
@@ -124,7 +125,7 @@ int ff_get_wav_header(AVIOContext *pb, AVCodecContext *codec, int size)
avio_skip(pb, size);
}
if (codec->sample_rate <= 0) {
- av_log(NULL, AV_LOG_ERROR,
+ av_log(s, AV_LOG_ERROR,
"Invalid sample rate: %d\n", codec->sample_rate);
return AVERROR_INVALIDDATA;
}