Re: [FFmpeg-devel] [PATCH] tools/coverity: override av_dict_set

2020-07-11 Thread Timo Rothenpieler
On 11.07.2020 22:17, Andreas Rheinhardt wrote: Timo Rothenpieler: Coverity thinks av_dict_set frees the key and value parameter, because it has the (rarely used) option to do so, and it's not smart enough to figure out it depends on the flags parameter. So lets provide a custom implementation th

Re: [FFmpeg-devel] [PATCH] tools/coverity: override av_dict_set

2020-07-11 Thread Andreas Rheinhardt
Timo Rothenpieler: > Coverity thinks av_dict_set frees the key and value parameter, because > it has the (rarely used) option to do so, and it's not smart enough to > figure out it depends on the flags parameter. > So lets provide a custom implementation that does not free them. > --- > tools/cove

[FFmpeg-devel] [PATCH] tools/coverity: override av_dict_set

2020-07-11 Thread Timo Rothenpieler
Coverity thinks av_dict_set frees the key and value parameter, because it has the (rarely used) option to do so, and it's not smart enough to figure out it depends on the flags parameter. So lets provide a custom implementation that does not free them. --- tools/coverity.c | 9 + 1 file ch