[FFmpeg-cvslog] avformat/riffdec: pass correct pointer to av_log
Paul B Mahol
git at videolan.org
Sun Apr 7 22:17:11 EEST 2019
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Apr 7 21:09:56 2019 +0200| [3a2adeedaff3e8292c99ffe4952338a706ed88d1] | committer: Paul B Mahol
avformat/riffdec: pass correct pointer to av_log
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3a2adeedaff3e8292c99ffe4952338a706ed88d1
---
libavformat/riffdec.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libavformat/riffdec.c b/libavformat/riffdec.c
index b448f9116f..5523b31adc 100644
--- a/libavformat/riffdec.c
+++ b/libavformat/riffdec.c
@@ -58,7 +58,7 @@ enum AVCodecID ff_codec_guid_get_id(const AVCodecGuid *guids, ff_asf_guid guid)
* an openended structure.
*/
-static void parse_waveformatex(AVIOContext *pb, AVCodecParameters *par)
+static void parse_waveformatex(AVFormatContext *s, AVIOContext *pb, AVCodecParameters *par)
{
ff_asf_guid subformat;
int bps;
@@ -81,7 +81,7 @@ static void parse_waveformatex(AVIOContext *pb, AVCodecParameters *par)
} else {
par->codec_id = ff_codec_guid_get_id(ff_codec_wav_guids, subformat);
if (!par->codec_id)
- av_log(pb, AV_LOG_WARNING,
+ av_log(s, AV_LOG_WARNING,
"unknown subformat:"FF_PRI_GUID"\n",
FF_ARG_GUID(subformat));
}
@@ -140,7 +140,7 @@ int ff_get_wav_header(AVFormatContext *s, AVIOContext *pb,
size -= 18;
cbSize = FFMIN(size, cbSize);
if (cbSize >= 22 && id == 0xfffe) { /* WAVEFORMATEXTENSIBLE */
- parse_waveformatex(pb, par);
+ parse_waveformatex(s, pb, par);
cbSize -= 22;
size -= 22;
}
More information about the ffmpeg-cvslog
mailing list