[FFmpeg-devel] munmap_chunk(): invalid pointer

Germán Milano g.milano87 at gmail.com
Mon Dec 26 13:28:36 CET 2011


Hi everyone,

When trying to encode a video using x264, i get the following error:


*** glibc detected *** ./encoder.o: munmap_chunk(): invalid pointer:
0x00000000009fdbb7 ***


I'm using the muxing example to do the encoding. However, i modified the
profile being used by default:

CODE (in libx264.c):

if (x4->fastfirstpass)
        x264_param_apply_fastfirstpass(&x4->params);


/////////////////////////////////////////////////////////////////////////////////////
+  x4->profile = "main";

/////////////////////////////////////////////////////////////////////////////////////

    if (x4->profile)
        if (x264_param_apply_profile(&x4->params, x4->profile) < 0)
            return -1;


This error occurs only when i add the above line.

Why does this happen?, is there any other way to encode using 'main'
profile?

Best regards,
Jeremy


More information about the ffmpeg-devel mailing list