BUG: Crash when write mpeg4, swf and etc
when use ffmpeg from svn (i have not old, compatible version) it's core dump when try start write, but create destination file with zero length. because in ffmpeg have some changes in API.
i'm have not too much time for fix and programming, but found first error:
file ffmpg.c:
function struct ffmpeg *ffmpeg_open, line 437:
old:
....
/* Allocation the output media context. */
ffmpeg->oc = av_mallocz(sizeof(AVFormatContext));
if (!ffmpeg->oc) {
....
new:
...
/* Allocation the output media context. */
ffmpeg->oc = avformat_alloc_context();
if (!ffmpeg->oc) {
...
and now it function (ffmpeg_open) work ok(i hope) and successfull create file (in my case SWF) with no zero length.
other error try find later.
Environment
Motion version: |
3.2.12 |
ffmpeg version: |
svn26402 |
Shared libraries: |
ffmpeg, mysql, postgresql |
Server OS: |
kernel 3.0.3 |
--
AlexeyPu - 05 Oct 2011
Follow up
Fixed in svn trunk rev 539.
Cheers,
--
AngelCarpintero - 22 Oct 2011
Fix record