[FFmpeg-devel] [PATCH] lavu/tx: stop using av_log(NULL, )
Lynne
dev at lynne.ee
Thu May 25 03:32:51 EEST 2023
May 24, 2023, 23:24 by leo.izen at gmail.com:
> On 5/24/23 16:35, Lynne wrote:
>
>> Patch attached.
>>
>
> + av_log((void *)&tx_class, AV_LOG_DEBUG, "%s\n", bp.str);
>
> The type of the first argument to av_log should be AVClass **, but this only appears to be AVClass *. See libavutil/log.c line 428.
>
> - Leo Izen
>
Right, thanks, changed to:
> static const AVClass tx_class = {
> .class_name = "tx",
> .item_name = av_default_item_name,
> .version = LIBAVUTIL_VERSION_INT,
> };
>
> static const struct {
> const AVClass *tx_class;
> } tx_log = {
> &tx_class,
> };
Will push this tomorrow.
More information about the ffmpeg-devel
mailing list