On Mon, Mar 27, 2017 at 11:35:41AM -0300, James Almer wrote:
[...]
> > -        char tag_buf[32];
> > -
> > -        av_get_codec_tag_string(tag_buf, sizeof(tag_buf), par->codec_tag);
> 
> char *tag_buf = av_4cc2str(par->codec_tag); and keep the two line below
> unchanged.
> 

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.

[...]

-- 
Clément B.

Attachment: signature.asc
Description: PGP signature

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to