diff --git a/libavformat/segment.c b/libavformat/segment.c index b6697e0940..f31b25fb36 100644 --- a/libavformat/segment.c +++ b/libavformat/segment.c @@ -386,7 +386,7 @@ static int seg_write_header(AVFormatContext *s) } if (seg->oformat->flags & AVFMT_NOFILE) { av_log(s, AV_LOG_ERROR, "format %s not supported.\n", - oc->oformat->name); + seg->oformat->name); ret = AVERROR(EINVAL); goto fail; }