On Mon, Mar 27, 2017 at 05:07:34PM +0200, Nicolas George wrote: > 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. > > (6.5.2.5 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(). >
Ah, I stand corrected. Alright, will adjust the code. Thanks. -- Clément B.
signature.asc
Description: PGP signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel