riff: Use the correct logging context
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user