I discovered a crash here if log handler function tries to get the class
name from "s"
mpeg12dec.c:
if (get_bits_left(&s->gb) < 0) {
av_log(s, AV_LOG_ERROR, "overread %d\n", -get_bits_left(&s->gb));
return AVERROR_INVALIDDATA;
}
And it seems to be because MpegEncContext->cl
problem here.
I'm not so sure it is required to be non-null given that the features of
AVClass may not be useful to every object, e.g. options and such may not be
appropriate for private objects.
On Tue, Mar 4, 2025 at 4:36 PM Andreas Rheinhardt <
andreas.rheinha...@outlook.com> wrote: