[FFmpeg-devel] [PATCH] lavu/tx: stop using av_log(NULL, )
James Almer
jamrial at gmail.com
Sun May 28 04:07:17 EEST 2023
On 5/24/2023 9:32 PM, Lynne wrote:
> 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.
Can't add an AVClass* field to AVTXContext and set it to &tx_class
during init?
More information about the ffmpeg-devel
mailing list