Index: encoder/encoder.c =================================================================== --- encoder/encoder.c (revision 650) +++ encoder/encoder.c (working copy) @@ -61,6 +61,8 @@ #define NALU_OVERHEAD 5 // startcode + NAL type costs 5 bytes per frame +#define dbg_printf(id) fprintf(stderr, "[%p] f=%d t=%ld"id, h, h->fdec->i_frame, x264_mdate()); + static void x264_encoder_frame_end( x264_t *h, x264_t *thread_current, x264_nal_t **pp_nal, int *pi_nal, x264_picture_t *pic_out ); @@ -1215,6 +1217,8 @@ { int i_frame_size; + dbg_printf(" start\n"); + #if VISUALIZE if( h->param.b_visualize ) x264_visualize_init( h ); @@ -1232,6 +1236,8 @@ } #endif + dbg_printf(" stop\n"); + h->out.i_frame_size = i_frame_size; return 0; } @@ -1600,8 +1606,10 @@ if( h->b_thread_active ) { + dbg_printf(" join?\n"); pthread_join( h->thread_handle, NULL ); h->b_thread_active = 0; + dbg_printf(" join.\n"); } if( !h->out.i_nal ) {