From d80811c94e068085aab797f9ba35790529126f85 Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Sat, 11 Jul 2015 12:41:42 +0200 Subject: riff: Use the correct logging context --- libavformat/riffdec.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libavformat/riffdec.c') 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; } -- cgit v1.2.3