[FFmpeg-devel] [PATCH]Fixed av_fast_realloc calling error when compiled to the Dynamic library

杨超 owen6169496 at outlook.com
Mon Dec 8 03:43:13 CET 2014


Hello,Michael:Sorry for my late reply.>the patch lost the \nyes, the patch lost \n.
the patch is :---a/libavcodec/utils.c+++b/libavcodec/utils.c@@ -127,1 +127,1 @@-#if FF_API_FAST_MALLOC && CONFIG_SHARED && HAVE_SYMVER+#if FF_API_FAST_MALLOC && (!CONFIG_SHARED) && HAVE_SYMVER
>what error message(s) do you get when it fails ?The command line is:"./ffmpeg -y -i ./test.mp4 -vcodec copy -acodec copy -vbsf h264_mp4toannexb -strict -2 -f hls test.m3u8"The fails Phenomenon is feign death( Not occurred hang up or segment fault ).I debugged the dynamic library using gdb(a android mobile phone) and gdbserver(utuntu) and found when calling av_fast_realloc. The fails occurred.So I modified this bug as the patch and tested it(other processings on android plantform). The result is OK.The reason about this bug is using the macro “FF_SYMVER” on cross compile platform. Thank you for your reply.

Date: Sat, 6 Dec 2014 16:08:44 +0100
From: michaelni at gmx.at
To: ffmpeg-devel at ffmpeg.org
Subject: Re: [FFmpeg-devel] [PATCH]Fixed av_fast_realloc calling error when	compiled to the Dynamic library

On Fri, Dec 05, 2014 at 06:05:30PM +0800, 杨超 wrote:
> Hello,All:
> source base: ffmpeg-2.2.10env:androidso/a: so
> When calling the av_fast_realloc or av_fast_malloc. There will be a error ( the processing will feign death ).
> Fixed patch:
 
> ---a/libavcodec/utils.c+++b/libavcodec/utils.c@@ -127,1 +127,1 @@-#if FF_API_FAST_MALLOC && CONFIG_SHARED && HAVE_SYMVER+#if FF_API_FAST_MALLOC && (!CONFIG_SHARED) && HAVE_SYMVER
 
the patch lost the \n
 
what error message(s) do you get when it fails ?
 
[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
 
The greatest way to live with honor in this world is to be what we pretend
to be. -- Socrates

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel 		 	   		  


More information about the ffmpeg-devel mailing list