Hi.<br>in my case, and probably in yours is that when the "application" exits is not cleaning all the allocated memory during the running process. so, when you make a second call there is not enough space and the application gives a memory error. Check in your code to see when the application exits for the first time if it does all of the av_free and free .. for each malloc you do .. there must be one free..<br>
<br>its very annoying to pin point it because there is no debug process for jni and android.. printf and pencil is the option..<br><br><br clear="all">------<br>Give a man a fish and you feed him for a day. Teach him how to fish and you feed him for a lifetime.<br>

<br><br><div class="gmail_quote">On Mon, Jul 2, 2012 at 9:53 PM, Igor Oliveira <span dir="ltr"><<a href="mailto:igorols@gmail.com" target="_blank">igorols@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi, I'm having the same problem. I downloaded this project:<br>
<a href="https://github.com/havlenapetr/FFMpeg" target="_blank">https://github.com/havlenapetr/FFMpeg</a><br>
<br>
I've made some changes and I don't need the jniaudio and jnivideo libs.<br>
<br>
I just need to call the "main" method from class ffmpeg.c and I made some<br>
changes to the file com_media_ffmpeg_FFMpeg.c to look like ffmpeg.c.<br>
<br>
I can only make one call to the method "native_av_parse_options". If call<br>
another time the aplication crashes and logcat prints "Fatal signal 11<br>
(SIGSEGV) at 0xdeadbaad (code=1)". After a short time the aplication  is<br>
restarted automatically.<br>
<br>
Rui Luís, I would like to know how do you solve this problem.<br>
<br>
Thanks in advance.<br>
<br>
--<br>
View this message in context: <a href="http://libav-users.943685.n4.nabble.com/Libav-user-FFMPEG-JNI-ANDROID-tp4655206p4655359.html" target="_blank">http://libav-users.943685.n4.nabble.com/Libav-user-FFMPEG-JNI-ANDROID-tp4655206p4655359.html</a><br>

Sent from the libav-users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
</blockquote></div><br>