[FFmpeg-devel] [PATCH 04/10] lavf: fix usages of av_get_codec_tag_string()
george at nsup.org
Mon Mar 27 18:07:34 EEST 2017
Le septidi 7 germinal, an CCXXV, Clement Boesch a écrit :
> No, I can't do that, av_4cc2str() creates a temporary anonymous buffer
> with a reduced lifetime. It can only live within the function call.
I believe you are mistaken:
# it has automatic storage duration associated with the enclosing block.
(18.104.22.168 Compound literals, #6)
It would be inconsistent otherwise: the compound literal would exist in
the call to make_string() but disappear before the call to printf().
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 833 bytes
Desc: Digital signature
More information about the ffmpeg-devel