[FFmpeg-devel] [PATCH 1/3] avutil/threadmessage: add av_thread_message_flush()

Clément Bœsch u at pkh.me
Mon Dec 7 11:35:34 CET 2015


On Sun, Dec 06, 2015 at 12:20:28PM +0100, Nicolas George wrote:
[...]
> > +static void free_func_wrap(void *arg, void *msg, int size)
> > +{
> > +    void (*free_func)(void *msg) = arg;
> 
> Technically, this is not legal: void* is a data pointer, it could be smaller
> than a function pointer (remember the "medium" memory model for 16-bits
> code). I do not object much, but it is easy to fix: just pass &free_func as
> argument, or even squarely mq itself.
> 

Changed locally to mq->free_func, thanks, will push soon

[...]

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20151207/14f995bc/attachment.sig>


More information about the ffmpeg-devel mailing list