[x264-devel] multiple execution?
karthik
skarthikeyan_17 at yahoo.com
Thu Jan 11 12:40:02 CET 2007
Hi all
1) i am pasting a gdb snapshot of x264's execution.
2)
a) Can anyone explain the multiple execution of lines 1082,1087 etc.
( I have added 'etc' above because there are many places this happens.. muxers.c...)
The snap also contains `info threads`. which shows 1 thread only
* 1 Thread 1074147968 (LWP 4754) Encode (param=0xbfffee60, opt=0xbfffee40) at x264.c:1087
3) These lines are not inside any loop.
---------------
Breakpoint 4, Encode (param=0xbfffee60, opt=0xbfffee40) at x264.c:1082
1082 if( ( i_frame_total == 0 || param->i_frame_total < i_frame_total )
(gdb) step
1080 i_frame_total = p_get_frame_total( opt->hin );
(gdb) step
1082 if( ( i_frame_total == 0 || param->i_frame_total < i_frame_total )
(gdb) step
1087 if( ( h = x264_encoder_open( param ) ) == NULL )
(gdb) info threads
* 1 Thread 1074147968 (LWP 4754) Encode (param=0xbfffee60, opt=0xbfffee40) at x264.c:1087
(gdb) info threads
* 1 Thread 1074147968 (LWP 4754) Encode (param=0xbfffee60, opt=0xbfffee40) at x264.c:1087
(gdb) step
1085 param->i_frame_total = i_frame_total;
(gdb) step
1087 if( ( h = x264_encoder_open( param ) ) == NULL )
(gdb) step
x264_encoder_open (param=0xbfffee60) at encoder/encoder.c:461
461 x264_t *h = x264_malloc( sizeof( x264_t ) );
(gdb) info threads
* 1 Thread 1074147968 (LWP 4754) x264_encoder_open (param=0xbfffee60) at encoder/encoder.c:461
(gdb)
---------------
Karthik
---------------------------------
Want to start your own business? Learn how on Yahoo! Small Business.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.videolan.org/pipermail/x264-devel/attachments/20070111/9b4deace/attachment.htm
More information about the x264-devel
mailing list