El 24/03/16 a las 03:03, Yu Ang Tan escribió:
// allocate context
pFormatCtx = avformat_alloc_context();
pFormatCtx->oformat = pOutFormat;
memcpy(pFormatCtx->filename,filename,
min(strlen(filename), sizeof(pFormatCtx->filename)));
Here you are trashing memory. You need to allocate pFormatCtx->filename
(or use something like strdup).
--
Gonzalo GarramuƱo
[email protected]
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user