summaryrefslogtreecommitdiff
path: root/libavformat/webm_chunk.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-02-29 20:01:33 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-03-26 01:44:06 +0100
commit0b1af9d3306583af0ac8016f99017460c1d56aad (patch)
treeaa71cb8cea4ed8d33b3d3d81afff88b52500d147 /libavformat/webm_chunk.c
parent00d0934fcedad8e6418b066ab89552659271db00 (diff)
avformat/webm_chunk: Don't use child AVFormatContext for logging
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavformat/webm_chunk.c')
-rw-r--r--libavformat/webm_chunk.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libavformat/webm_chunk.c b/libavformat/webm_chunk.c
index 4e2ce21a79..d75fd5e6a3 100644
--- a/libavformat/webm_chunk.c
+++ b/libavformat/webm_chunk.c
@@ -87,25 +87,24 @@ static int chunk_mux_init(AVFormatContext *s)
static int get_chunk_filename(AVFormatContext *s, int is_header, char filename[MAX_FILENAME_SIZE])
{
WebMChunkContext *wc = s->priv_data;
- AVFormatContext *oc = wc->avf;
if (!filename) {
return AVERROR(EINVAL);
}
if (is_header) {
int len;
if (!wc->header_filename) {
- av_log(oc, AV_LOG_ERROR, "No header filename provided\n");
+ av_log(s, AV_LOG_ERROR, "No header filename provided\n");
return AVERROR(EINVAL);
}
len = av_strlcpy(filename, wc->header_filename, MAX_FILENAME_SIZE);
if (len >= MAX_FILENAME_SIZE) {
- av_log(oc, AV_LOG_ERROR, "Header filename too long\n");
+ av_log(s, AV_LOG_ERROR, "Header filename too long\n");
return AVERROR(EINVAL);
}
} else {
if (av_get_frame_filename(filename, MAX_FILENAME_SIZE,
s->url, wc->chunk_index - 1) < 0) {
- av_log(oc, AV_LOG_ERROR, "Invalid chunk filename template '%s'\n", s->url);
+ av_log(s, AV_LOG_ERROR, "Invalid chunk filename template '%s'\n", s->url);
return AVERROR(EINVAL);
}
}