diff mbox series

[FFmpeg-devel,02/13] libavformat/westwood_audenc: Use proper logcontext

Message ID AS8P250MB074475D64E44823436954BA48F332@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit b8124fe35ef92512d9d4522c4ccc27fdc6436e39
Headers show
Series [FFmpeg-devel,01/13] avformat/mp3enc: Improve query_codec | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Andreas Rheinhardt March 20, 2024, 2:12 a.m. UTC
(AVStream did not have an AVClass when this muxer was added.)

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavformat/westwood_audenc.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/libavformat/westwood_audenc.c b/libavformat/westwood_audenc.c
index 84a871e478..46456e2ecb 100644
--- a/libavformat/westwood_audenc.c
+++ b/libavformat/westwood_audenc.c
@@ -48,19 +48,19 @@  static int wsaud_write_init(AVFormatContext *ctx)
 
     /* Stream must be seekable to correctly write the file. */
     if (!(pb->seekable & AVIO_SEEKABLE_NORMAL)) {
-        av_log(ctx->streams[0], AV_LOG_ERROR, "Cannot write Westwood AUD to"
+        av_log(ctx, AV_LOG_ERROR, "Cannot write Westwood AUD to"
                " non-seekable stream.\n");
         return AVERROR(EINVAL);
     }
 
     if (st->codecpar->codec_id != AV_CODEC_ID_ADPCM_IMA_WS) {
-        av_log(st, AV_LOG_ERROR, "%s codec not supported for Westwood AUD.\n",
+        av_log(ctx, AV_LOG_ERROR, "%s codec not supported for Westwood AUD.\n",
                avcodec_get_name(st->codecpar->codec_id));
         return AVERROR(EINVAL);
     }
 
     if (ctx->nb_streams != 1) {
-        av_log(st, AV_LOG_ERROR, "AUD files have exactly one stream\n");
+        av_log(ctx, AV_LOG_ERROR, "AUD files have exactly one stream\n");
         return AVERROR(EINVAL);
     }