On Thu, 24 Mar 2016 at 22:41 Gonzalo <[email protected]> wrote: > > > 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ñ[email protected] > > _______________________________________________ > Libav-user mailing list > [email protected] > http://ffmpeg.org/mailman/listinfo/libav-user
Hi Gonzalo I don't think that's the case. AVFormatContext::filename is of type char[1024] not char*. Therefore I cannot assign to it.
_______________________________________________ Libav-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/libav-user
